add pledged text
This commit is contained in:
parent
45f5919d27
commit
864a5ed1e9
|
@ -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}
|
||||||
|
|
Loading…
Reference in New Issue