change funderProfile to funderDescription

This commit is contained in:
Barry Gitarts 2018-11-30 11:38:58 -05:00
parent 56c7455515
commit 4118da3081

View File

@ -18,11 +18,11 @@ const addFunderSucessMsg = response => {
const AddFunder = () => ( const AddFunder = () => (
<Formik <Formik
initialValues={{ funderName: '', funderProfile: '', commitTime : '' }} initialValues={{ funderName: '', funderDescription: '', commitTime : '' }}
onSubmit={async (values, { setSubmitting, resetForm, setStatus }) => { onSubmit={async (values, { setSubmitting, resetForm, setStatus }) => {
const { funderName, funderProfile, commitTime } = values; const { funderName, funderDescription, commitTime } = values;
const account = await web3.eth.getCoinbase(); const account = await web3.eth.getCoinbase();
const args = [funderName, funderProfile, commitTime, 0]; const args = [funderName, funderDescription, commitTime, 0];
addGiver(...args) addGiver(...args)
.estimateGas({ from: account }) .estimateGas({ from: account })
.then(async gas => { .then(async gas => {
@ -67,15 +67,15 @@ const AddFunder = () => (
value={values.funderName || ''} value={values.funderName || ''}
/> />
<TextField <TextField
id="funderProfile" id="funderDescription"
name="funderProfile" name="funderDescription"
label="Funder Profile URL or IPFS Hash" label="Funder Description (URL or IPFS Hash)"
placeholder="Funder Profile URL or IPFS Hash" placeholder="Funder Description (URL or IPFS Hash)"
margin="normal" margin="normal"
variant="outlined" variant="outlined"
onChange={handleChange} onChange={handleChange}
onBlur={handleBlur} onBlur={handleBlur}
value={values.funderProfile || ''} value={values.funderDescription || ''}
/> />
<TextField <TextField
id="commitTime" id="commitTime"
@ -90,7 +90,7 @@ const AddFunder = () => (
value={values.commitTime || ''} value={values.commitTime || ''}
/> />
<Button variant="contained" color="primary" type="submit"> <Button variant="contained" color="primary" type="submit">
ADD FUNDER ADD FUNDER PROFILE
</Button> </Button>
{status && <Snackbar {status && <Snackbar
anchorOrigin={{ anchorOrigin={{