From b992b8cc8fcd2075dac06718229e43d76d1ba451 Mon Sep 17 00:00:00 2001 From: Manuel Wedler Date: Wed, 18 Sep 2024 17:21:50 +0200 Subject: [PATCH] Improve coloring of NavMenu and move to one line --- .../src/app/components/NavMenu.tsx | 14 +++++--------- .../src/app/layouts/Default.tsx | 2 +- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/apps/contract-verification/src/app/components/NavMenu.tsx b/apps/contract-verification/src/app/components/NavMenu.tsx index ce01bd8514..4e1e6579ab 100644 --- a/apps/contract-verification/src/app/components/NavMenu.tsx +++ b/apps/contract-verification/src/app/components/NavMenu.tsx @@ -9,15 +9,10 @@ interface NavItemProps { const NavItem: React.FC = ({ to, icon, title }) => { return ( - 'p-2 text-decoration-none ' + (isActive ? 'bg-primary text-white' : 'bg-secondary')} - // state={from} - > - + 'text-decoration-none d-flex flex-column justify-content-center px-2 ' + (isActive ? 'bg-transparent' : 'bg-dark')}> + {icon} - {title} + {title} ) @@ -25,11 +20,12 @@ const NavItem: React.FC = ({ to, icon, title }) => { export const NavMenu = () => { return ( -