fixes tab widget bg color (#4948)

This commit is contained in:
Arpit 2022-12-13 12:22:35 +05:30 committed by GitHub
parent 9c1add517f
commit da091d2b61
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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]);