diff options
Diffstat (limited to 'src/components/NavBar.tsx')
-rw-r--r-- | src/components/NavBar.tsx | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/src/components/NavBar.tsx b/src/components/NavBar.tsx deleted file mode 100644 index 52e8e6c..0000000 --- a/src/components/NavBar.tsx +++ /dev/null @@ -1,29 +0,0 @@ -import React from 'react'; -import { Link } from 'react-router-dom'; -import { AppBar, Toolbar, Typography } from '@mui/material'; -import useMediaQuery from '@mui/material/useMediaQuery'; -import Desktop from './Desktop'; -import Mobile from './Mobile'; - -function NavBar() { - const isMobile = useMediaQuery('(max-width: 768px)'); - - return ( - <AppBar position="relative"> - <Toolbar> - <Typography - variant="h5" - component={Link} - to="/" - color="inherit" - sx={{ textDecoration: 'none' }} - > - Madison and Michael's Wedding - </Typography> - {isMobile ? <Mobile /> : <Desktop />} - </Toolbar> - </AppBar> - ); -} - -export default NavBar; |