Skip to content

Commit

Permalink
fix: have theme values (#96)
Browse files Browse the repository at this point in the history
  • Loading branch information
gregfrasco authored Feb 15, 2024
1 parent 31f68c1 commit 8b64b18
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion packages/client/src/context/project.context.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,15 @@ export const ProjectProvider: FC<ProjectProviderProps> = ({ children, ...props }
<ThemeProvider
theme={createTheme({
...theme,
...project?.muiTheme
palette: {
...theme.palette,
primary: {
main: project?.muiTheme.primaryColor || theme.palette.primary.main
},
secondary: {
main: project?.muiTheme.secondaryColor || theme.palette.secondary.main
}
}
})}
>
{children}
Expand Down

0 comments on commit 8b64b18

Please sign in to comment.