File tree Expand file tree Collapse file tree
components/projects/ProjectsGridItem
pages/_dashboard/renderDashboard/organiser/projects/winners Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -68,6 +68,7 @@ const ProjectsGridItem = ({
6868 showTags = false ,
6969 showReviewers = false ,
7070 showScore = false ,
71+ votingResults = null ,
7172} ) => {
7273 const [ openReviewModal , setOpenReviewModal ] = useState ( false )
7374 const isReviewingOpen = EventHelpers . isReviewingOpen ( event , moment )
@@ -191,7 +192,6 @@ const ProjectsGridItem = ({
191192 </ div >
192193 { project ?. punchline && (
193194 < Typography variant = "body1" component = "p" >
194- { showTableLocation && showScore }
195195 { _ . truncate ( project . punchline , {
196196 length : styling . punchlineMaxLength ,
197197 } ) }
@@ -225,6 +225,7 @@ const ProjectsGridItem = ({
225225 ) }
226226 </ div >
227227 ) }
228+ { votingResults && < > { votingResults } </ > }
228229 </ div >
229230 </ CardContent >
230231 < CardActions className = "tw-flex tw-flex-col tw-justify-center tw-items-center tw-px-4 tw-pb-4 tw-pt-0 tw-gap-4" >
Original file line number Diff line number Diff line change @@ -64,8 +64,8 @@ export default () => {
6464 if ( partnerVotes ) {
6565 setTokenVoterResults ( partnerVotes )
6666 }
67- setLoading ( false )
6867 }
68+ setLoading ( false )
6969 } , [
7070 event . overallReviewMethod ,
7171 event . slug ,
@@ -87,7 +87,7 @@ export default () => {
8787
8888 return (
8989 < >
90- < strong > { total } </ strong > < br />
90+ < strong > Total votes received: { total } </ strong > < br />
9191 Participant votes: { scoreFromUsers } < br />
9292 Token votes: { scoreFromTokenVoters }
9393 </ >
@@ -102,7 +102,7 @@ export default () => {
102102 < ProjectsGridItem
103103 project = { project }
104104 event = { event }
105- score = { getScoreText ( project . _id ) }
105+ votingResults = { getScoreText ( project . _id ) }
106106 onClickMore = { ( ) => setSelected ( project ) }
107107 showScore = { true }
108108 />
You can’t perform that action at this time.
0 commit comments