Browse Source

Show in-app-notification content

Shun Miyazawa 2 years ago
parent
commit
aa6a274717

+ 7 - 0
apps/app/src/components/Sidebar/InAppNotification/InAppNotification.tsx

@@ -0,0 +1,7 @@
+import React from 'react';
+
+export const InAppNotification = (): JSX.Element => {
+  return (
+    <>In-App-Notification</>
+  );
+};

+ 1 - 0
apps/app/src/components/Sidebar/InAppNotification/index.ts

@@ -0,0 +1 @@
+export * from './InAppNotification';

+ 3 - 0
apps/app/src/components/Sidebar/SidebarContents.tsx

@@ -6,6 +6,7 @@ import { useCollapsedContentsOpened, useCurrentSidebarContents, useSidebarMode }
 
 
 import { Bookmarks } from './Bookmarks';
 import { Bookmarks } from './Bookmarks';
 import { CustomSidebar } from './Custom';
 import { CustomSidebar } from './Custom';
+import { InAppNotification } from './InAppNotification';
 import { PageTree } from './PageTree';
 import { PageTree } from './PageTree';
 import { RecentChanges } from './RecentChanges';
 import { RecentChanges } from './RecentChanges';
 import Tag from './Tag';
 import Tag from './Tag';
@@ -29,6 +30,8 @@ export const SidebarContents = memo(() => {
         return Tag;
         return Tag;
       case SidebarContentsType.BOOKMARKS:
       case SidebarContentsType.BOOKMARKS:
         return Bookmarks;
         return Bookmarks;
+      case SidebarContentsType.NOTIFICATION:
+        return InAppNotification;
       default:
       default:
         return PageTree;
         return PageTree;
     }
     }