File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ import {Logo, UserProfileButton} from "@/components";
1717import {
1818 PATH_AUTH ,
1919 PATH_CALENDAR ,
20- PATH_DASHBOARD ,
20+ PATH_DASHBOARD , PATH_DOCS ,
2121 PATH_ERROR ,
2222 PATH_INVOICES ,
2323 PATH_ORDERS ,
@@ -91,12 +91,12 @@ const mockdata = [
9191 {
9292 label : 'Getting started' ,
9393 icon : IconLifebuoy ,
94- link : 'https://analytics-dashboard-docs.netlify.app/getting-started'
94+ link : PATH_DOCS . root
9595 } ,
9696 {
9797 label : 'Documentation' ,
9898 icon : IconBook2 ,
99- link : 'https://analytics-dashboard-docs.netlify.app/'
99+ link : PATH_DOCS . root
100100 } ,
101101 { label : 'Changelog' , icon : IconList , } ,
102102 ]
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ import {
1212 ScrollArea ,
1313 Text
1414} from '@mantine/core' ;
15- import { useDisclosure } from '@mantine/hooks' ;
15+ import { useDisclosure , useMediaQuery } from '@mantine/hooks' ;
1616import { IconChevronDown } from '@tabler/icons-react' ;
1717import useStyles from "./HeaderNav.styles" ;
1818import { PATH_DASHBOARD , PATH_DOCS } from "@/routes" ;
@@ -38,6 +38,7 @@ const HEADER_HEIGHT = rem(60);
3838const HeaderNav = ( ) => {
3939 const { classes, theme} = useStyles ( ) ;
4040 const [ drawerOpened , { toggle : toggleDrawer , close : closeDrawer } ] = useDisclosure ( false ) ;
41+ const tablet_match = useMediaQuery ( '(max-width: 768px)' ) ;
4142
4243 const items = MOCK_DATA . map ( ( link ) => {
4344 return (
@@ -79,6 +80,9 @@ const HeaderNav = () => {
7980 title = "Menu"
8081 className = { classes . hiddenDesktop }
8182 zIndex = { 1000000 }
83+ transitionProps = { {
84+ transition : tablet_match ? 'slide-up' : 'slide-left' ,
85+ } }
8286 >
8387 < ScrollArea h = { `calc(100vh - ${ rem ( 60 ) } )` } mx = "-md" >
8488 { items }
You can’t perform that action at this time.
0 commit comments