From 87e5efaa1857526be13290cc760e41b7e8c9eb86 Mon Sep 17 00:00:00 2001 From: Edmund Hung Date: Tue, 22 Nov 2022 11:06:00 +0100 Subject: [PATCH] feat: add link for rss (#27) --- app/components/SidebarNavigation.tsx | 14 +++++++------- app/icons/rss-square.svg | 5 +++++ app/routes/_layout.admin.tsx | 15 ++++++++++++++- 3 files changed, 26 insertions(+), 8 deletions(-) create mode 100644 app/icons/rss-square.svg diff --git a/app/components/SidebarNavigation.tsx b/app/components/SidebarNavigation.tsx index ce5f44f..1b692c4 100644 --- a/app/components/SidebarNavigation.tsx +++ b/app/components/SidebarNavigation.tsx @@ -20,6 +20,7 @@ import templateIcon from '~/icons/layer-group.svg'; import exampleIcon from '~/icons/code.svg'; import eventIcon from '~/icons/calendar-alt.svg'; import opinionIcon from '~/icons/mail-bulk.svg'; +import rssIcon from '~/icons/rss-square.svg'; import type { UserProfile } from '~/types'; import { PaneContainer, @@ -197,6 +198,9 @@ function SidebarNavigation({ History + {isAdministrator(profile.name) ? ( + ⌨ Admin + ) : null} ) : null} @@ -210,13 +214,6 @@ function SidebarNavigation({ ))} - {isAdministrator(profile?.name) ? ( - - 🌐 Pages - 👥 Users - 🗃 Backup / Restore - - ) : null}
@@ -232,6 +229,9 @@ function SidebarNavigation({ Meetup + + RSS +
diff --git a/app/icons/rss-square.svg b/app/icons/rss-square.svg new file mode 100644 index 0000000..6187a67 --- /dev/null +++ b/app/icons/rss-square.svg @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/app/routes/_layout.admin.tsx b/app/routes/_layout.admin.tsx index 33bdd0c..7b89679 100644 --- a/app/routes/_layout.admin.tsx +++ b/app/routes/_layout.admin.tsx @@ -1,6 +1,6 @@ import type { LoaderArgs } from '@remix-run/cloudflare'; import { json } from '@remix-run/cloudflare'; -import { Outlet, useLoaderData, useLocation } from '@remix-run/react'; +import { Link, Outlet, useLoaderData, useLocation } from '@remix-run/react'; import { useMemo } from 'react'; import menuIcon from '~/icons/menu.svg'; import FlashMessage from '~/components/FlashMessage'; @@ -30,6 +30,19 @@ export default function Admin() {
Administrator
+
+ + Pages + + / + + Users + + / + + Resources + +