display fields and button as all avaliable options are selected

This commit is contained in:
Barry Gitarts 2019-03-22 15:31:43 -04:00 committed by Barry G
parent 22f66490d1
commit 933998dc41
1 changed files with 3 additions and 3 deletions

View File

@ -107,7 +107,7 @@ const SubmissionSection = ({ classes, profiles, delegatePledges }) => {
</MenuItem>
))}
</TextField>}
<TextField
{values.delegatePledge && <TextField
autoFocus
margin="normal"
id="amount"
@ -120,8 +120,8 @@ const SubmissionSection = ({ classes, profiles, delegatePledges }) => {
onChange={handleChange}
onBlur={handleBlur}
value={values.amount || ''}
/>
<Button type="submit" color="primary" variant="contained" style={{ height: '50px', width: '100%' }}>Submit for Funding</Button>
/>}
{values.amount && <Button type="submit" color="primary" variant="contained" style={{ height: '50px', width: '100%' }}>Submit for Funding</Button>}
</form>
) }
}