Skip to content

Commit

Permalink
path: settings fab outside bar
Browse files Browse the repository at this point in the history
  • Loading branch information
sky-ash authored Nov 4, 2024
1 parent d2c4a88 commit 4f41322
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion src/components/Navigation.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,25 @@ export default function Navigation() {
);
} else if (location.pathname === '/path') {
return (
<>
<Link to="/settings">
<Fab color="primary"
variant='extended'
sx={{ position: 'fixed', zIndex: 1,
left: '50%', transform: 'translateX(-50%)',
bottom: 32, }}>
<SettingsIcon />
</Fab>
</Link>

<AppBar position="fixed"
bgcolor="background.paper"
p={2}
sx={{ top: 'auto',
bottom: 0,
}}>


{/*
<Link to="/settings">
<Fab color="primary"
sx={{ position: 'absolute', zIndex: 1,
Expand All @@ -52,6 +64,7 @@ export default function Navigation() {
<SettingsIcon />
</Fab>
</Link>
*/}

<Toolbar>

Expand All @@ -74,6 +87,7 @@ export default function Navigation() {
</Toolbar>

</AppBar>
</>
);
} else if (location.pathname === '/settings' || location.pathname === '/sources') {
return (
Expand Down

0 comments on commit 4f41322

Please sign in to comment.