diff options
author | eug-vs <eug-vs@keemail.me> | 2020-11-15 04:07:33 +0300 |
---|---|---|
committer | eug-vs <eug-vs@keemail.me> | 2020-11-15 04:07:33 +0300 |
commit | 81b46581ab79f8f5e9e132e00e5d1b8e9182dd46 (patch) | |
tree | 7c46c3fd9b2b66af20ce91b61ac889d327c1e492 /src/index.tsx | |
parent | eb2e929e2188ccfd9f575a5aa425024bf1fec67f (diff) | |
download | famcs-kit-81b46581ab79f8f5e9e132e00e5d1b8e9182dd46.tar.gz |
feat: implement authentication
Diffstat (limited to 'src/index.tsx')
-rw-r--r-- | src/index.tsx | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/src/index.tsx b/src/index.tsx index 5337615..ddde049 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -5,6 +5,7 @@ import { Paper } from '@material-ui/core'; import { makeStyles } from '@material-ui/core/styles'; import BsuFantomSection from './containers/BsuFantomSection/BsuFantomSection'; import LoginSection from './containers/LoginSection/LoginSection'; +import { AuthProvider } from './hooks/useAuth'; const useStyles = makeStyles(theme => ({ root: { @@ -19,14 +20,16 @@ const App: React.FC = () => { const classes = useStyles(); return ( - <Benzin> - <Paper className={classes.root}> - <ContentSection sectionName="famcs-kit"> - <LoginSection /> - <BsuFantomSection /> - </ContentSection> - </Paper> - </Benzin> + <AuthProvider> + <Benzin> + <Paper className={classes.root}> + <ContentSection sectionName="famcs-kit"> + <LoginSection /> + <BsuFantomSection /> + </ContentSection> + </Paper> + </Benzin> + </AuthProvider> ); }; |