From fb55695366cbe008e12fdca2f263145f1dddae5b Mon Sep 17 00:00:00 2001 From: TheoryOfNekomata Date: Sun, 25 Apr 2021 09:38:34 +0800 Subject: [PATCH] Make sidebar links shallow The links for opening the sidebars have been declared for shallow routing because there are no major changes in other contents of the pages. --- src/components/organisms/layouts/LeftSidebarWithMenu/index.tsx | 1 + src/components/organisms/widgets/TopBar/index.tsx | 1 + 2 files changed, 2 insertions(+) diff --git a/src/components/organisms/layouts/LeftSidebarWithMenu/index.tsx b/src/components/organisms/layouts/LeftSidebarWithMenu/index.tsx index cc576c8..d4680b2 100644 --- a/src/components/organisms/layouts/LeftSidebarWithMenu/index.tsx +++ b/src/components/organisms/layouts/LeftSidebarWithMenu/index.tsx @@ -472,6 +472,7 @@ const LeftSidebarWithMenuLayout: React.FC = ({ textDecoration: 'none', width: '100%', }} + shallow > diff --git a/src/components/organisms/widgets/TopBar/index.tsx b/src/components/organisms/widgets/TopBar/index.tsx index dae1c92..b2abeec 100644 --- a/src/components/organisms/widgets/TopBar/index.tsx +++ b/src/components/organisms/widgets/TopBar/index.tsx @@ -150,6 +150,7 @@ const TopBar: React.FC = ({ display: 'inline-grid', placeContent: 'center', }} + shallow >