aboutsummaryrefslogtreecommitdiff
path: root/src/containers/BsuFantomSection
diff options
context:
space:
mode:
authoreug-vs <eug-vs@keemail.me>2020-11-15 08:41:58 +0300
committereug-vs <eug-vs@keemail.me>2020-11-15 08:41:58 +0300
commitff4196b57cc2a167eda392908ec214732b9f06fd (patch)
tree93a83e16b3dfef95f66f42e0310095dfcca5ecde /src/containers/BsuFantomSection
parentc81e4232329f5aee6ddcd94674a63682720646b2 (diff)
downloadfamcs-kit-ff4196b57cc2a167eda392908ec214732b9f06fd.tar.gz
feat: optimize layout for mobile
Diffstat (limited to 'src/containers/BsuFantomSection')
-rw-r--r--src/containers/BsuFantomSection/EventForm.tsx18
1 files changed, 12 insertions, 6 deletions
diff --git a/src/containers/BsuFantomSection/EventForm.tsx b/src/containers/BsuFantomSection/EventForm.tsx
index de3adc7..beb94fd 100644
--- a/src/containers/BsuFantomSection/EventForm.tsx
+++ b/src/containers/BsuFantomSection/EventForm.tsx
@@ -38,48 +38,54 @@ const EventForm: React.FC<PropTypes> = ({ mutate }) => {
return (
<Grid container spacing={2}>
- <Grid item>
+ <Grid item sm={6} xs={12}>
<TextField
value={name}
onChange={createHandler(setName)}
variant="outlined"
label="Name"
+ fullWidth
+ required
/>
</Grid>
- <Grid item>
+ <Grid item sm={6} xs={12}>
<TextField
value={date}
onChange={createHandler(setDate)}
variant="outlined"
label="Date"
+ fullWidth
required
/>
</Grid>
- <Grid item>
+ <Grid item sm={6} xs={12}>
<TextField
value={conferenceId}
onChange={createHandler(setConferenceId)}
variant="outlined"
label="Conference ID"
+ fullWidth
required
/>
</Grid>
- <Grid item>
+ <Grid item sm={6} xs={12}>
<TextField
value={attendanceId}
onChange={createHandler(setAttendanceId)}
variant="outlined"
label="Attendance ID"
+ fullWidth
/>
</Grid>
- <Grid item xs={12}>
+ <Grid item sm={2} xs={12}>
<Button
onClick={handleSubmit}
variant="contained"
size="large"
color="primary"
+ fullWidth
>
- CREATE JOB
+ Create event
</Button>
</Grid>
</Grid>