Skip to content

Commit f4123c7

Browse files
committed
fix: added transition props to fix ThemeDrawer.tsx issue on production
feat: updated docs link on Navigation.tsx
1 parent d3cb7e9 commit f4123c7

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

layout/App/Navigation/Navigation.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import {Logo, UserProfileButton} from "@/components";
1717
import {
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
]

layout/Guest/HeaderNav/HeaderNav.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff 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';
1616
import {IconChevronDown} from '@tabler/icons-react';
1717
import useStyles from "./HeaderNav.styles";
1818
import {PATH_DASHBOARD, PATH_DOCS} from "@/routes";
@@ -38,6 +38,7 @@ const HEADER_HEIGHT = rem(60);
3838
const 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}

0 commit comments

Comments
 (0)