update create project fields for submission
This commit is contained in:
parent
70c18d376c
commit
aeab5e44c9
|
@ -21,6 +21,7 @@ const { addProject } = LiquidPledging.methods
|
||||||
|
|
||||||
const hoursToSeconds = hours => hours * 60 * 60
|
const hoursToSeconds = hours => hours * 60 * 60
|
||||||
const helperText = 'The length of time the Project has to veto when the project delegates to another delegate and they pledge those funds to a project'
|
const helperText = 'The length of time the Project has to veto when the project delegates to another delegate and they pledge those funds to a project'
|
||||||
|
const generateChatRoom = title => `#status-${title.replace(/\s/g, '')}`
|
||||||
|
|
||||||
const styles = theme => ({
|
const styles = theme => ({
|
||||||
adornmentText: {
|
adornmentText: {
|
||||||
|
@ -132,6 +133,7 @@ const createJSON = values => {
|
||||||
title,
|
title,
|
||||||
subtitle,
|
subtitle,
|
||||||
creator,
|
creator,
|
||||||
|
repo,
|
||||||
avatar,
|
avatar,
|
||||||
goal,
|
goal,
|
||||||
goalToken,
|
goalToken,
|
||||||
|
@ -144,10 +146,12 @@ const createJSON = values => {
|
||||||
title,
|
title,
|
||||||
subtitle,
|
subtitle,
|
||||||
creator,
|
creator,
|
||||||
|
repo,
|
||||||
avatar: formatMedia(avatar),
|
avatar: formatMedia(avatar),
|
||||||
goal,
|
goal,
|
||||||
goalToken,
|
goalToken,
|
||||||
description,
|
description,
|
||||||
|
chatRoom: generateChatRoom(title),
|
||||||
media: {
|
media: {
|
||||||
isPlaying,
|
isPlaying,
|
||||||
type: 'video'
|
type: 'video'
|
||||||
|
@ -177,11 +181,12 @@ const SubmissionSection = ({ classes, history }) => {
|
||||||
title: '',
|
title: '',
|
||||||
subtitle: '',
|
subtitle: '',
|
||||||
creator: '',
|
creator: '',
|
||||||
|
repo: '',
|
||||||
avatar: '',
|
avatar: '',
|
||||||
|
video: '',
|
||||||
goal: '',
|
goal: '',
|
||||||
goalToken: '',
|
goalToken: '',
|
||||||
video: '',
|
isPlaying: false,
|
||||||
isPlaying: true,
|
|
||||||
description: '',
|
description: '',
|
||||||
commitTime: 24
|
commitTime: 24
|
||||||
}}
|
}}
|
||||||
|
@ -268,7 +273,7 @@ const SubmissionSection = ({ classes, history }) => {
|
||||||
/>
|
/>
|
||||||
<div className={classes.chatRoom}>
|
<div className={classes.chatRoom}>
|
||||||
<Icon name="oneOnOneChat" />
|
<Icon name="oneOnOneChat" />
|
||||||
<div className={classes.chatText}>{`Join #status-${values.title.replace(/\s/g, '')}`}</div>
|
<div className={classes.chatText}>{`Join ${generateChatRoom(values.title)}`}</div>
|
||||||
</div>
|
</div>
|
||||||
<IconTextField
|
<IconTextField
|
||||||
iconName="boxArrow"
|
iconName="boxArrow"
|
||||||
|
|
Loading…
Reference in New Issue