add pledged text

This commit is contained in:
Barry Gitarts 2019-08-05 11:21:58 -04:00 committed by Barry G
parent 45f5919d27
commit 864a5ed1e9
1 changed files with 4 additions and 0 deletions

View File

@ -212,6 +212,7 @@ const SubmissionSection = ({ classes, history, projectData, projectId, pledges,
const isVideo = useMemo(() => getMediaType(projectAssets), [projectAssets, projectId]) const isVideo = useMemo(() => getMediaType(projectAssets), [projectAssets, projectId])
const mediaUrl = useMemo(() => getMediaSrc(projectAssets), [projectAssets, projectId]) const mediaUrl = useMemo(() => getMediaSrc(projectAssets), [projectAssets, projectId])
const createdDate = getDateCreated(projectAge) const createdDate = getDateCreated(projectAge)
const totalPledged = amountsPledged[0] ? amountsPledged[0][1] : 0
console.log({createdDate, projectAge, projectAssets, manifest, amountsPledged, numberOfBackers, isVideo, mediaUrl}) console.log({createdDate, projectAge, projectAssets, manifest, amountsPledged, numberOfBackers, isVideo, mediaUrl})
return ( return (
@ -318,6 +319,9 @@ const SubmissionSection = ({ classes, history, projectData, projectId, pledges,
</div>} </div>}
<div className={secondHalf}> <div className={secondHalf}>
<div className={classes.edit}>Edit</div> <div className={classes.edit}>Edit</div>
<Typography className={classes.projectTitle} component="h2" gutterBottom>
{`${totalPledged.toLocaleString()} ${amountsPledged[0] ? amountsPledged[0][0] : ''}`} pledged
</Typography>
<Button type="submit" color="primary" variant="contained" className={classnames(classes.formButton)}>{isSubmitting ? 'Ethereum Submission In Progress' : 'Create Project'}</Button> <Button type="submit" color="primary" variant="contained" className={classnames(classes.formButton)}>{isSubmitting ? 'Ethereum Submission In Progress' : 'Create Project'}</Button>
<CurrencySelect <CurrencySelect
className={fullWidth} className={fullWidth}