Skip to content

Commit

Permalink
Update Navigation.jsx
Browse files Browse the repository at this point in the history
  • Loading branch information
sky-ash authored Nov 4, 2024
1 parent a99da25 commit e7ec56d
Showing 1 changed file with 3 additions and 14 deletions.
17 changes: 3 additions & 14 deletions src/components/Navigation.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,12 @@ export default function Navigation() {
const location = useLocation();
if (location.pathname === '/') {
return (
<AppBar position="fixed"
bgcolor="background.paper"
p={2}
sx={{ top: 'auto',
bottom: 0,
}}>

<Toolbar>

<Link to="/path">
<Link to="/path">
<Fab color="primary"
sx={{ position: 'absolute', zIndex: 1,
margin: '0 auto', top: -20,
left: 0, right: 0, }}>
<Typography display='flex'
<Typography display='flex'
p={2}
alignItems='center'
variant='h6'
Expand All @@ -41,9 +32,7 @@ export default function Navigation() {
START
</Typography>
</Fab>
</Link>
</Toolbar>
</AppBar>
</Link>
);
} else if (location.pathname === '/path') {
return (
Expand Down

0 comments on commit e7ec56d

Please sign in to comment.