From 045871978727e0b927402f8cc3dfb5541e960ab8 Mon Sep 17 00:00:00 2001 From: Kamran Ahmed Date: Tue, 13 Jun 2023 15:47:57 +0100 Subject: [PATCH] Add new menu item indicator --- src/components/AccountSidebar.astro | 147 ++++++++++++++--------- src/components/Activity/ActivityPage.tsx | 13 -- 2 files changed, 88 insertions(+), 72 deletions(-) diff --git a/src/components/AccountSidebar.astro b/src/components/AccountSidebar.astro index b1fce9282..b4f3ef4e5 100644 --- a/src/components/AccountSidebar.astro +++ b/src/components/AccountSidebar.astro @@ -9,48 +9,52 @@ export interface Props { } const sidebarLinks = [ - { - href: '/account', - title: 'Activity', - id: 'activity', - icon: { - glyph: 'analytics', - classes: 'h-3 w-4', - } + { + href: '/account', + title: 'Activity', + id: 'activity', + isNew: false, + icon: { + glyph: 'analytics', + classes: 'h-3 w-4', }, - { - href: '/account/road-card', - title: 'Card', - id: 'road-card', - icon: { - glyph: 'badge', - classes: 'h-4 w-4', - } + }, + { + href: '/account/road-card', + title: 'Card', + id: 'road-card', + isNew: true, + icon: { + glyph: 'badge', + classes: 'h-4 w-4', }, - { - href: '/account/update-profile', - title: 'Profile', - id: 'profile', - icon: { - glyph: 'user', - classes: 'h-4 w-4', - } + }, + { + href: '/account/update-profile', + title: 'Profile', + id: 'profile', + isNew: false, + icon: { + glyph: 'user', + classes: 'h-4 w-4', }, - { - href: '/account/update-password', - title: 'Security', - id: 'change-password', - icon: { - glyph: 'security', - classes: 'h-4 w-4' - } + }, + { + href: '/account/update-password', + title: 'Security', + id: 'change-password', + isNew: false, + icon: { + glyph: 'security', + classes: 'h-4 w-4', }, + }, ]; ---
-