remove avator upload

fix not displaying image preview for project creation
This commit is contained in:
Barry Gitarts 2020-01-15 13:56:47 -05:00 committed by Barry G
parent 3983ff9306
commit c00c903c28
2 changed files with 2 additions and 50 deletions

View File

@ -340,30 +340,6 @@ const SubmissionSection = ({ classes, history }) => {
onBlur={handleBlur}
value={values.repo || ''}
/>
<IconTextField
iconName="addPerson"
endAdornment={(
<InputAdornment position="start">
<span
className={classes.adornmentText}
onClick={() => {
const activeField = 'avatar'
setStatus({ ...status, activeField })
uploadInput.click()
}
}
>Browse
</span>
</InputAdornment>
)}
className={fullWidth}
idFor="avatar"
name="avatar"
placeholder="upload or enter link to creator avatar"
onChange={handleChange}
onBlur={handleBlur}
value={values.avatar || ''}
/>
<IconTextField
iconName="photo"
endAdornment={(
@ -388,7 +364,7 @@ const SubmissionSection = ({ classes, history }) => {
onBlur={handleBlur}
value={values.media || ''}
/>
{Array.isArray(values.media) && <MediaView isVideo={isVideo(uploads.media[0])} className={fullWidth} source={URL.createObjectURL(uploads.media[0])} />}
{values.media && <MediaView isVideo={isVideo(uploads.media[0])} className={fullWidth} source={URL.createObjectURL(uploads.media[0])} />}
{status && status.showPreview &&
<div className={classnames(classes.markdown, fullWidth)}>
<div

View File

@ -325,30 +325,6 @@ const SubmissionSection = ({ classes, history, projectData, projectId }) => {
onBlur={handleBlur}
value={values.repo || ''}
/>
<IconTextField
iconName="addPerson"
endAdornment={(
<InputAdornment position="start">
<span
className={classes.adornmentText}
onClick={() => {
const activeField = 'avatar'
setStatus({ ...status, activeField })
uploadInput.click()
}
}
>Browse
</span>
</InputAdornment>
)}
className={fullWidth}
idFor="avatar"
name="avatar"
placeholder="upload or enter link to creator avatar"
onChange={handleChange}
onBlur={handleBlur}
value={values.avatar || ''}
/>
<IconTextField
iconName="photo"
endAdornment={(
@ -373,7 +349,7 @@ const SubmissionSection = ({ classes, history, projectData, projectId }) => {
onBlur={handleBlur}
value={values.media || ''}
/>
{Array.isArray(values.media) && <MediaView isVideo={isVideo(uploads.media[0])} className={fullWidth} source={URL.createObjectURL(uploads.media[0])} />}
{values.media && <MediaView isVideo={isVideo(uploads.media[0])} className={fullWidth} source={URL.createObjectURL(uploads.media[0])} />}
{status && status.showPreview &&
<div className={classnames(classes.markdown, fullWidth)}>
<div