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

bring master up to date #70

Merged
merged 9 commits into from
Nov 16, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
added config for the 4 members in winner.js
  • Loading branch information
Dushyant Bhalgami committed Nov 16, 2019
commit 64191c26bf8b8cd60abe320b68b8c51de5e02654
5 changes: 5 additions & 0 deletions pages/winners.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { checkForMainSponsor } from '../common/helper'

const rowSize = {
5: [2, 1, 2],
4: [2, 2, 0],
7: [2, 3, 2],
8: [3, 2, 3],
9: [2, 3, 4],
Expand Down Expand Up @@ -186,6 +187,10 @@ const cardLayout = (profile, primaryColor, position, length) => {
const finalistsLayout = (profiles, props) => {
const { primaryColor, finalists, prizes } = props
const rows = rowSize[profiles.length]

console.log(profiles)
console.log(rows.length)

const row1 = profiles.slice(0, rows[0])
const row2 = profiles.slice(rows[0], rows[0] + rows[1])
const row3 = profiles.slice(rows[0] + rows[1])
Expand Down