From 743274940eab4487445338cf579528f94e673ba4 Mon Sep 17 00:00:00 2001 From: Hazem Krimi Date: Sat, 1 May 2021 19:40:22 +0100 Subject: [PATCH] Update navbar component --- src/components/Navbar/index.tsx | 6 +++++- src/components/Navbar/styles.ts | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/components/Navbar/index.tsx b/src/components/Navbar/index.tsx index 8d33bf6..8fd9bec 100644 --- a/src/components/Navbar/index.tsx +++ b/src/components/Navbar/index.tsx @@ -31,7 +31,11 @@ const Navbar = ({ withSidebar }: NavbarProps) => { items={ role !== 'admin' ? [ - { icon: , label: 'Settings', action: () => {} }, + { + icon: , + label: 'Settings', + action: () => history.push('/settings'), + }, { icon: , label: 'Logout', diff --git a/src/components/Navbar/styles.ts b/src/components/Navbar/styles.ts index eca9545..d7903f5 100644 --- a/src/components/Navbar/styles.ts +++ b/src/components/Navbar/styles.ts @@ -16,6 +16,7 @@ export const Wrapper = styled.div` user-select: none; position: sticky; top: 0; + z-index: 99; svg { display: flex;