move tab styles to theme so they apply globally

This commit is contained in:
Alex Holliday committed 2025-02-06 09:14:19 -08:00
1 parent 547f97ffed
commit a30ed2b766
2 files changed
+9 -5

No files matched your search

-5
View File
@@ -73,11 +73,6 @@ const Account = ({ open = "profile" }) => {
<TabList
onChange={handleTabChange}
aria-label="account tabs"
sx={{
"& .MuiTabs-indicator": {
backgroundColor: theme.palette.tertiary.contrastText,
},
}}
>
{tabList.map((label, index) => (
<Tab
+9
View File
@@ -358,6 +358,15 @@ const baseTheme = (palette) => ({
}),
},
},
MuiTabs: {
styleOverrides: {
root: ({ theme }) => ({
"& .MuiTabs-indicator": {
backgroundColor: theme.palette.tertiary.contrastText,
},
}),
},
},
},
shape: {
borderRadius: 2,