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";
17
17
import {
18
18
PATH_AUTH ,
19
19
PATH_CALENDAR ,
20
- PATH_DASHBOARD ,
20
+ PATH_DASHBOARD , PATH_DOCS ,
21
21
PATH_ERROR ,
22
22
PATH_INVOICES ,
23
23
PATH_ORDERS ,
@@ -91,12 +91,12 @@ const mockdata = [
91
91
{
92
92
label : 'Getting started' ,
93
93
icon : IconLifebuoy ,
94
- link : 'https://analytics-dashboard-docs.netlify.app/getting-started'
94
+ link : PATH_DOCS . root
95
95
} ,
96
96
{
97
97
label : 'Documentation' ,
98
98
icon : IconBook2 ,
99
- link : 'https://analytics-dashboard-docs.netlify.app/'
99
+ link : PATH_DOCS . root
100
100
} ,
101
101
{ label : 'Changelog' , icon : IconList , } ,
102
102
]
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ import {
12
12
ScrollArea ,
13
13
Text
14
14
} from '@mantine/core' ;
15
- import { useDisclosure } from '@mantine/hooks' ;
15
+ import { useDisclosure , useMediaQuery } from '@mantine/hooks' ;
16
16
import { IconChevronDown } from '@tabler/icons-react' ;
17
17
import useStyles from "./HeaderNav.styles" ;
18
18
import { PATH_DASHBOARD , PATH_DOCS } from "@/routes" ;
@@ -38,6 +38,7 @@ const HEADER_HEIGHT = rem(60);
38
38
const HeaderNav = ( ) => {
39
39
const { classes, theme} = useStyles ( ) ;
40
40
const [ drawerOpened , { toggle : toggleDrawer , close : closeDrawer } ] = useDisclosure ( false ) ;
41
+ const tablet_match = useMediaQuery ( '(max-width: 768px)' ) ;
41
42
42
43
const items = MOCK_DATA . map ( ( link ) => {
43
44
return (
@@ -79,6 +80,9 @@ const HeaderNav = () => {
79
80
title = "Menu"
80
81
className = { classes . hiddenDesktop }
81
82
zIndex = { 1000000 }
83
+ transitionProps = { {
84
+ transition : tablet_match ? 'slide-up' : 'slide-left' ,
85
+ } }
82
86
>
83
87
< ScrollArea h = { `calc(100vh - ${ rem ( 60 ) } )` } mx = "-md" >
84
88
{ items }
You can’t perform that action at this time.
0 commit comments