|
|
@@ -17,6 +17,7 @@ import {
|
|
|
import DrawerToggler from './Navbar/DrawerToggler';
|
|
|
import { NavigationResizeHexagon } from './Sidebar/NavigationResizeHexagon';
|
|
|
import { SidebarNav } from './Sidebar/SidebarNav';
|
|
|
+import { SidebarSkelton } from './Sidebar/SidebarSkelton';
|
|
|
import { StickyStretchableScrollerProps } from './StickyStretchableScroller';
|
|
|
|
|
|
import styles from './Sidebar.module.scss';
|
|
|
@@ -58,7 +59,8 @@ const GlobalNavigation = () => {
|
|
|
const SidebarContentsWrapper = () => {
|
|
|
const StickyStretchableScroller = dynamic<StickyStretchableScrollerProps>(() => import('./StickyStretchableScroller')
|
|
|
.then(mod => mod.StickyStretchableScroller), { ssr: false });
|
|
|
- const SidebarContents = dynamic(() => import('./Sidebar/SidebarContents').then(mod => mod.SidebarContents), { ssr: false });
|
|
|
+ const SidebarContents = dynamic(() => import('./Sidebar/SidebarContents')
|
|
|
+ .then(mod => mod.SidebarContents), { ssr: false, loading: () => <SidebarSkelton /> });
|
|
|
const { mutate: mutateSidebarScroller } = useSidebarScrollerRef();
|
|
|
|
|
|
const calcViewHeight = useCallback(() => {
|