Skip to content

Commit

Permalink
Added button to mobile sidebar
Browse files Browse the repository at this point in the history
  • Loading branch information
notwindstone committed Mar 10, 2024
1 parent 0edc260 commit a62bdb9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/layout/MobileSidebar.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
import SideNavItem from "../components/SideNavItem.tsx";
import sidebar from "../config/sidebar.json";
import {Button} from "@mantine/core";
import {IconCompass} from "@tabler/icons-react";
import {Link} from "@tanstack/react-router";

const MobileSidebar = (props: { hidden: boolean }) => {
const { hidden } = props

return (
<aside className="mobile-sidebar" hidden={hidden}>
<div className="mobile-sidebar__body">
<Button leftSection={<IconCompass stroke={1.5}/>} justify="flex-start" variant="filled" component={Link}
to="/guide/" className="sidebar__item">Вернуться</Button>
<SideNavItem title="Введение" sections={sidebar.intro}/>
<SideNavItem title="Базы" sections={sidebar.kits}/>
<SideNavItem title="Кейкапы" sections={sidebar.keycaps}/>
Expand Down

0 comments on commit a62bdb9

Please sign in to comment.