diff --git a/client/src/components/Footer.jsx b/client/src/components/Footer.jsx index 2876d220..8a86ee44 100644 --- a/client/src/components/Footer.jsx +++ b/client/src/components/Footer.jsx @@ -3,32 +3,63 @@ import { Redirect } from 'react-router-dom'; import pkg from '../../package.json'; import useAuth from '../hooks/useAuth'; +import { Button, Box, Typography } from '@mui/material'; import '../sass/Footer.scss'; const Footer = () => { - const { auth, logout } = useAuth(); + const { auth, logout } = useAuth(); - const handleLogout = async (e) => { - e.preventDefault(); - await logout(); - return - }; + const handleLogout = async (e) => { + e.preventDefault(); + await logout(); + return ; + }; - return ( -
-
-

v{pkg.version} "Alpha"

+ return ( + // + + {`v${pkg.version} "Alpha"`} - {auth?.user && ( -
-

{`Hi ${auth.user.name.firstName}`}

- -
- )} -
-
- ); + {auth?.user && ( + + {`Hi ${auth.user.name.firstName}`} + + + )} + + ); }; -export default Footer; \ No newline at end of file +export default Footer;