mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-23 08:58:26 +00:00
fixes tab widget bg color (#4948)
This commit is contained in:
parent
9c1add517f
commit
da091d2b61
1 changed files with 1 additions and 1 deletions
|
|
@ -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]);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue