From da091d2b6110bc02667aeea8f14a1c61147ef96f Mon Sep 17 00:00:00 2001 From: Arpit Date: Tue, 13 Dec 2022 12:22:35 +0530 Subject: [PATCH] fixes tab widget bg color (#4948) --- frontend/src/Editor/Components/Tabs.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/Editor/Components/Tabs.jsx b/frontend/src/Editor/Components/Tabs.jsx index a330a3d577..e1c0b11f34 100644 --- a/frontend/src/Editor/Components/Tabs.jsx +++ b/frontend/src/Editor/Components/Tabs.jsx @@ -76,7 +76,7 @@ export const Tabs = function Tabs({ useEffect(() => { const currentTabData = parsedTabs.filter((tab) => tab.id === currentTab); - setBgColor(currentTabData[0]?.backgroundColor ? currentTabData[0]?.backgroundColor : 'white'); + setBgColor(currentTabData[0]?.backgroundColor ? currentTabData[0]?.backgroundColor : darkMode ? '#324156' : '#fff'); // eslint-disable-next-line react-hooks/exhaustive-deps }, [currentState, currentTab]);