From 3ba5941cb5758494090bd30d632d3a08e3cd1cda Mon Sep 17 00:00:00 2001 From: eug-vs Date: Sun, 15 Nov 2020 04:49:44 +0300 Subject: feat: make grids responsive --- .../BsuFantomSection/BsuFantomSection.tsx | 2 +- src/containers/BsuFantomSection/EventForm.tsx | 16 +++++++-------- src/containers/BsuFantomSection/LoginForm.tsx | 23 ++++------------------ 3 files changed, 13 insertions(+), 28 deletions(-) diff --git a/src/containers/BsuFantomSection/BsuFantomSection.tsx b/src/containers/BsuFantomSection/BsuFantomSection.tsx index 33f39b2..6420402 100644 --- a/src/containers/BsuFantomSection/BsuFantomSection.tsx +++ b/src/containers/BsuFantomSection/BsuFantomSection.tsx @@ -27,7 +27,7 @@ const BsuFantomSection: React.FC = () => { {events?.map((event, index) => ( - + ))} diff --git a/src/containers/BsuFantomSection/EventForm.tsx b/src/containers/BsuFantomSection/EventForm.tsx index 64ea46b..e52dc5d 100644 --- a/src/containers/BsuFantomSection/EventForm.tsx +++ b/src/containers/BsuFantomSection/EventForm.tsx @@ -45,25 +45,25 @@ const EventForm: React.FC = ({ mutate }) => { value={date} onChange={createHandler(setDate)} variant="outlined" - label="When" + label="Date" required /> diff --git a/src/containers/BsuFantomSection/LoginForm.tsx b/src/containers/BsuFantomSection/LoginForm.tsx index 208c1f7..3204a64 100644 --- a/src/containers/BsuFantomSection/LoginForm.tsx +++ b/src/containers/BsuFantomSection/LoginForm.tsx @@ -1,24 +1,9 @@ import React, { useState } from 'react'; -import { ContentSection } from 'react-benzin'; -import { Link, TextField, Button, Grid } from '@material-ui/core'; -import { makeStyles } from '@material-ui/core/styles'; +import { TextField, Button, Grid } from '@material-ui/core'; import { useAuth } from '../../hooks/useAuth'; -const useStyles = makeStyles(theme => ({ - form: { - width: theme.spacing(50), - display: 'flex', - flexDirection: 'column', - '& > *': { - margin: theme.spacing(1) - } - }, -})); - - const LoginForm: React.FC = () => { - const classes = useStyles(); const { login } = useAuth(); const [username, setUsername] = useState(''); const [password, setPassword] = useState(''); @@ -35,7 +20,7 @@ const LoginForm: React.FC = () => { return ( - + { fullWidth /> - + { fullWidth /> - +