|
@@ -3,11 +3,13 @@ import React from 'react';
|
|
|
import { SidebarContentsType } from '~/interfaces/ui';
|
|
import { SidebarContentsType } from '~/interfaces/ui';
|
|
|
import { useCurrentSidebarContents } from '~/stores/ui';
|
|
import { useCurrentSidebarContents } from '~/stores/ui';
|
|
|
|
|
|
|
|
-import CustomSidebar from './CustomSidebar';
|
|
|
|
|
-import PageTree from './PageTree';
|
|
|
|
|
|
|
+// import CustomSidebar from './CustomSidebar';
|
|
|
|
|
+// import PageTree from './PageTree';
|
|
|
import RecentChanges from './RecentChanges';
|
|
import RecentChanges from './RecentChanges';
|
|
|
import Tag from './Tag';
|
|
import Tag from './Tag';
|
|
|
|
|
|
|
|
|
|
+const DummyComponent = (): JSX.Element => <></>; // Todo: remove this later when it is able to render other Contents.
|
|
|
|
|
+
|
|
|
const SidebarContents = (): JSX.Element => {
|
|
const SidebarContents = (): JSX.Element => {
|
|
|
const { data: currentSidebarContents } = useCurrentSidebarContents();
|
|
const { data: currentSidebarContents } = useCurrentSidebarContents();
|
|
|
|
|
|
|
@@ -17,13 +19,15 @@ const SidebarContents = (): JSX.Element => {
|
|
|
Contents = RecentChanges;
|
|
Contents = RecentChanges;
|
|
|
break;
|
|
break;
|
|
|
case SidebarContentsType.CUSTOM:
|
|
case SidebarContentsType.CUSTOM:
|
|
|
- Contents = CustomSidebar;
|
|
|
|
|
|
|
+ // Contents = CustomSidebar;
|
|
|
|
|
+ Contents = DummyComponent;
|
|
|
break;
|
|
break;
|
|
|
case SidebarContentsType.TAG:
|
|
case SidebarContentsType.TAG:
|
|
|
Contents = Tag;
|
|
Contents = Tag;
|
|
|
break;
|
|
break;
|
|
|
default:
|
|
default:
|
|
|
- Contents = PageTree;
|
|
|
|
|
|
|
+ // Contents = PageTree;
|
|
|
|
|
+ Contents = DummyComponent;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
return (
|
|
return (
|