|
@@ -2,9 +2,11 @@ import React, { FC } from 'react';
|
|
|
|
|
|
|
|
import { SidebarContentsType } from '~/interfaces/ui';
|
|
import { SidebarContentsType } from '~/interfaces/ui';
|
|
|
import { useCurrentSidebarContents } from '~/stores/ui';
|
|
import { useCurrentSidebarContents } from '~/stores/ui';
|
|
|
-import RecentChanges from './RecentChanges';
|
|
|
|
|
|
|
+
|
|
|
|
|
+import Bookmarks from './Bookmarks';
|
|
|
import CustomSidebar from './CustomSidebar';
|
|
import CustomSidebar from './CustomSidebar';
|
|
|
import PageTree from './PageTree';
|
|
import PageTree from './PageTree';
|
|
|
|
|
+import RecentChanges from './RecentChanges';
|
|
|
import Tag from './Tag';
|
|
import Tag from './Tag';
|
|
|
|
|
|
|
|
type Props = {
|
|
type Props = {
|
|
@@ -24,6 +26,9 @@ const SidebarContents: FC<Props> = (props: Props) => {
|
|
|
case SidebarContentsType.TAG:
|
|
case SidebarContentsType.TAG:
|
|
|
Contents = Tag;
|
|
Contents = Tag;
|
|
|
break;
|
|
break;
|
|
|
|
|
+ case SidebarContentsType.BOOKMARKS:
|
|
|
|
|
+ Contents = Bookmarks;
|
|
|
|
|
+ break;
|
|
|
default:
|
|
default:
|
|
|
Contents = PageTree;
|
|
Contents = PageTree;
|
|
|
}
|
|
}
|