From 718c582a8c73866f7265aea47a838b1088395f69 Mon Sep 17 00:00:00 2001 From: Kamran Ahmed Date: Fri, 26 May 2023 17:11:59 +0100 Subject: [PATCH] Update account sidebar --- src/components/AccountSidebar.astro | 49 ++++++++++++++++++----------- src/icons/analytics.svg | 3 ++ src/icons/security.svg | 1 + src/icons/user.svg | 4 +-- 4 files changed, 36 insertions(+), 21 deletions(-) create mode 100644 src/icons/analytics.svg create mode 100644 src/icons/security.svg diff --git a/src/components/AccountSidebar.astro b/src/components/AccountSidebar.astro index f4ebeb0a3..93ca8f862 100644 --- a/src/components/AccountSidebar.astro +++ b/src/components/AccountSidebar.astro @@ -9,21 +9,33 @@ export interface Props { } const sidebarLinks = [ - { - href: '/account', - title: 'Activity', - id: 'activity', - }, - { - href: '/account/update-profile', - title: 'Profile', - id: 'profile', - }, - { - href: '/account/update-password', - title: 'Security', - id: 'change-password', - }, + { + href: '/account', + title: 'Activity', + id: 'activity', + icon: { + glyph: 'analytics', + classes: 'h-3 w-4', + } + }, + { + href: '/account/update-profile', + title: 'Profile', + id: 'profile', + 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' + } + }, ]; --- @@ -58,7 +70,7 @@ const sidebarLinks = [
-