diff --git a/src/components/judging/CriteriaCard.tsx b/src/components/judging/CriteriaCard.tsx index 1463371..89a34b0 100644 --- a/src/components/judging/CriteriaCard.tsx +++ b/src/components/judging/CriteriaCard.tsx @@ -1,11 +1,13 @@ import React from "react"; import { Typography, Card, Slider } from "antd"; +import { Badge } from "@chakra-ui/react"; const { Paragraph } = Typography; interface Props { criteria: any; changeScore: (value: number, id: number) => void; + currScore: string; } const CriteriaCard: React.FC = props => { @@ -17,7 +19,10 @@ const CriteriaCard: React.FC = props => { return (
- {props.criteria.description} + {props.criteria.description} + {props.currScore} + + void; categoryName: string; + projectScores: any; } const CriteriaCardContainer: React.FC = props => (
{props.categoryName} - {props.criteriaArray.map((criteria: any) => ( - - ))} + {props.criteriaArray.map((criteria: any) => { + const currScore = props.projectScores[criteria.id]; + return ( + + ) + })}
); diff --git a/src/components/judging/JudgingCardsContainer.tsx b/src/components/judging/JudgingCardsContainer.tsx index 3dae518..f40e34e 100644 --- a/src/components/judging/JudgingCardsContainer.tsx +++ b/src/components/judging/JudgingCardsContainer.tsx @@ -113,6 +113,7 @@ const JudgingCardsContainer: React.FC = props => { criteriaArray={cToCMapping[key]} changeScore={changeScore} categoryName={key} + projectScores={projectScores} /> ); }