File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
site/src/components/WorkspaceStats Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import Checkbox from "@material-ui/core/Checkbox"
2
2
import FormControl from "@material-ui/core/FormControl"
3
3
import FormControlLabel from "@material-ui/core/FormControlLabel"
4
4
import FormGroup from "@material-ui/core/FormGroup"
5
+ import FormHelperText from "@material-ui/core/FormHelperText"
5
6
import FormLabel from "@material-ui/core/FormLabel"
6
7
import makeStyles from "@material-ui/core/styles/makeStyles"
7
8
import TextField from "@material-ui/core/TextField"
@@ -88,8 +89,8 @@ export const WorkspaceScheduleForm: React.FC<WorkspaceScheduleFormProps> = ({ on
88
89
friday : true ,
89
90
saturday : false ,
90
91
91
- startTime : "" ,
92
- ttl : 0 ,
92
+ startTime : "09:30 " ,
93
+ ttl : 120 ,
93
94
} ,
94
95
onSubmit,
95
96
validationSchema,
@@ -110,7 +111,7 @@ export const WorkspaceScheduleForm: React.FC<WorkspaceScheduleFormProps> = ({ on
110
111
variant = "standard"
111
112
/>
112
113
113
- < FormControl component = "fieldset" >
114
+ < FormControl component = "fieldset" error = { Boolean ( form . errors . monday ) } >
114
115
< FormLabel className = { styles . daysOfWeekLabel } component = "legend" >
115
116
{ Language . daysOfWeekLabel }
116
117
</ FormLabel >
@@ -194,6 +195,7 @@ export const WorkspaceScheduleForm: React.FC<WorkspaceScheduleFormProps> = ({ on
194
195
label = { Language . daySaturdayLabel }
195
196
/>
196
197
</ FormGroup >
198
+ { form . errors . monday && < FormHelperText > { Language . errorNoDayOfWeek } </ FormHelperText > }
197
199
</ FormControl >
198
200
199
201
< TextField
You can’t perform that action at this time.
0 commit comments