@@ -27,7 +27,7 @@ const CustomTextarea = styled(withTheme(TextareaAutosize))(props => ({
2727 "boxSizing" : "border-box" ,
2828 "width" : "100%" ,
2929 "marginTop" : 14 ,
30- "fontWeight" : 400 ,
30+ "fontWeight" : 300 ,
3131 "padding" : "21px 20px" ,
3232 "fontFamily" : "Roboto Mono" ,
3333 "border" : "none" ,
@@ -66,19 +66,24 @@ const CustomFormikTextField = withStyles({
6666} ) ( FormikTextField )
6767
6868const CustomInputContainer = styled ( Grid ) ( ( { theme } ) => ( {
69- height : 54 ,
70- boxSizing : "border-box" ,
71- marginTop : 14 ,
72- background : "#2F3438" ,
73- borderRadius : 8 ,
74- alignItems : "center" ,
75- display : "flex" ,
76- padding : "13px 23px"
69+ "height" : 54 ,
70+ "boxSizing" : "border-box" ,
71+ "marginTop" : 14 ,
72+ "background" : "#2F3438" ,
73+ "borderRadius" : 8 ,
74+ "alignItems" : "center" ,
75+ "display" : "flex" ,
76+ "padding" : "13px 23px" ,
77+ "fontWeight" : 300 ,
78+ "& input::placeholder" : {
79+ fontWeight : 300
80+ }
7781} ) )
7882
7983const ErrorText = styled ( Typography ) ( {
8084 fontSize : 14 ,
81- color : "red"
85+ color : "red" ,
86+ marginTop : 4
8287} )
8388
8489const TextareaContainer = styled ( Grid ) ( {
@@ -116,6 +121,8 @@ const TokenSettingsForm = ({ submitForm, values, errors, touched, setFieldValue,
116121 const { dispatch } = useContext ( DeploymentContext )
117122 const match = useRouteMatch ( )
118123 const history = useHistory ( )
124+ const theme = useTheme ( )
125+ const isMobileSmall = useMediaQuery ( theme . breakpoints . down ( "sm" ) )
119126
120127 useEffect ( ( ) => {
121128 if ( values ) {
@@ -126,6 +133,10 @@ const TokenSettingsForm = ({ submitForm, values, errors, touched, setFieldValue,
126133 submitForm ( values )
127134 } ,
128135 text : "Continue"
136+ } ,
137+ back : {
138+ text : "Back" ,
139+ handler : ( ) => history . push ( "/creator/ownership" )
129140 }
130141 } )
131142 }
@@ -137,10 +148,10 @@ const TokenSettingsForm = ({ submitForm, values, errors, touched, setFieldValue,
137148 < Grid item xs = { 12 } >
138149 < Typography variant = "subtitle1" color = "textSecondary" >
139150 { " " }
140- Contract name { " " }
151+ Contract Name { " " }
141152 </ Typography >
142153 < CustomInputContainer >
143- < Field id = "outlined-basic" placeholder = "Contract name " name = "name" component = { CustomFormikTextField } />
154+ < Field id = "outlined-basic" placeholder = "Contract Name " name = "name" component = { CustomFormikTextField } />
144155 </ CustomInputContainer >
145156 { errors . name && touched . name ? < ErrorText > { errors . name } </ ErrorText > : null }
146157 </ Grid >
@@ -157,7 +168,7 @@ const TokenSettingsForm = ({ submitForm, values, errors, touched, setFieldValue,
157168 < CustomTextarea
158169 maxLength = { 1500 }
159170 aria-label = "empty textarea"
160- placeholder = "Description "
171+ placeholder = "Type a description "
161172 value = { getIn ( values , "description" ) }
162173 onChange = { ( newValue : any ) => {
163174 setFieldValue ( "description" , newValue . target . value )
@@ -178,15 +189,15 @@ const TokenSettingsForm = ({ submitForm, values, errors, touched, setFieldValue,
178189 < Field
179190 id = "outlined-basic"
180191 type = "number"
181- placeholder = "Supply "
192+ placeholder = "0 "
182193 name = "totalSupply"
183194 component = { CustomFormikTextField }
184195 onKeyDown = { ( e : FieldChange ) => handleNegativeInput ( e ) }
185196 />
186197 </ CustomInputContainer >
187198 { errors . totalSupply && touched . totalSupply ? < ErrorText > { errors . totalSupply } </ ErrorText > : null }
188199 </ Grid >
189- < Grid item xs = { 6 } >
200+ < Grid item xs = { isMobileSmall ? 6 : 3 } >
190201 < Typography variant = "subtitle1" color = "textSecondary" >
191202 { " " }
192203 Decimals{ " " }
@@ -195,7 +206,7 @@ const TokenSettingsForm = ({ submitForm, values, errors, touched, setFieldValue,
195206 < Field
196207 id = "outlined-basic"
197208 type = "number"
198- placeholder = "Decimals "
209+ placeholder = "0 "
199210 name = "decimals"
200211 component = { CustomFormikTextField }
201212 onKeyDown = { ( e : FieldChange ) => handleChange ( e ) }
@@ -209,21 +220,21 @@ const TokenSettingsForm = ({ submitForm, values, errors, touched, setFieldValue,
209220 < Grid item xs = { 6 } >
210221 < Typography variant = "subtitle1" color = "textSecondary" >
211222 { " " }
212- Symbol { " " }
223+ Icon { " " }
213224 </ Typography >
214225 < CustomInputContainer >
215- < Field id = "outlined-basic" placeholder = "Symbol " name = "symbol " component = { CustomFormikTextField } />
226+ < Field id = "outlined-basic" placeholder = "URL " name = "icon " component = { CustomFormikTextField } />
216227 </ CustomInputContainer >
217- { errors . symbol && touched . symbol ? < ErrorText > { errors . symbol } </ ErrorText > : null }
218228 </ Grid >
219- < Grid item xs = { 6 } >
229+ < Grid item xs = { isMobileSmall ? 6 : 3 } >
220230 < Typography variant = "subtitle1" color = "textSecondary" >
221231 { " " }
222- Icon { " " }
232+ Symbol { " " }
223233 </ Typography >
224234 < CustomInputContainer >
225- < Field id = "outlined-basic" placeholder = "Icon " name = "icon " component = { CustomFormikTextField } />
235+ < Field id = "outlined-basic" placeholder = "TEZ " name = "symbol " component = { CustomFormikTextField } />
226236 </ CustomInputContainer >
237+ { errors . symbol && touched . symbol ? < ErrorText > { errors . symbol } </ ErrorText > : null }
227238 </ Grid >
228239 </ Grid >
229240 </ Grid >
@@ -252,7 +263,9 @@ export const ConfigContract: React.FC = () => {
252263 < >
253264 < Grid container direction = "column" >
254265 < Grid >
255- < TitleBlock title = "Configure token contract" description = { "" } > </ TitleBlock >
266+ < Typography style = { { marginBottom : 32 } } variant = "h5" color = "textSecondary" >
267+ Configure Token Contract
268+ </ Typography >
256269 </ Grid >
257270
258271 < Formik
0 commit comments