From a486e66ee5173f688df0d45d8fb8acfa9e6160f4 Mon Sep 17 00:00:00 2001 From: amit Date: Thu, 7 Nov 2024 10:43:13 +0530 Subject: [PATCH] color switches to pink when tab is selected --- src/components/organisms/MainMenu.tsx | 26 ++++++++++++++++++-------- 1 file changed, 18 insertions(+), 8 deletions(-) diff --git a/src/components/organisms/MainMenu.tsx b/src/components/organisms/MainMenu.tsx index c6bae196..03ef3f49 100644 --- a/src/components/organisms/MainMenu.tsx +++ b/src/components/organisms/MainMenu.tsx @@ -17,6 +17,10 @@ export const MainMenu = ({ value = 'recordings', handleChangeContent }: MainMenu handleChangeContent(newValue); }; + // Define colors based on theme mode + const defaultcolor = theme.palette.mode === 'light' ? 'black' : 'white'; + const selectedPink = '#FF00C3'; + return ( } iconPosition="start" /> } iconPosition="start" /> } iconPosition="start" /> }