Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit 64191c2

Browse files
author
Dushyant Bhalgami
committed
added config for the 4 members in winner.js
1 parent 61abe8a commit 64191c2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pages/winners.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import { checkForMainSponsor } from '../common/helper'
1010

1111
const rowSize = {
1212
5: [2, 1, 2],
13+
4: [2, 2, 0],
1314
7: [2, 3, 2],
1415
8: [3, 2, 3],
1516
9: [2, 3, 4],
@@ -186,6 +187,10 @@ const cardLayout = (profile, primaryColor, position, length) => {
186187
const finalistsLayout = (profiles, props) => {
187188
const { primaryColor, finalists, prizes } = props
188189
const rows = rowSize[profiles.length]
190+
191+
console.log(profiles)
192+
console.log(rows.length)
193+
189194
const row1 = profiles.slice(0, rows[0])
190195
const row2 = profiles.slice(rows[0], rows[0] + rows[1])
191196
const row3 = profiles.slice(rows[0] + rows[1])

0 commit comments

Comments
 (0)