remove avator upload
fix not displaying image preview for project creation
This commit is contained in:
parent
3983ff9306
commit
c00c903c28
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue