Skip to content

Commit 87c51d7

Browse files
committed
--
1 parent 146b9f8 commit 87c51d7

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

app/src/containers/AppContainer.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,15 @@ const AppContainer = () => {
1515

1616
return (
1717
// Mui theme provider provides themed styling to all MUI components in app
18-
<MuiThemeProvider theme={theme}>
18+
<MuiThemeProvider>
1919
<Button
2020
color="primary"
2121
className={classes.button}
22-
onClick={() => (!style.backgroundColor ? setStyle({}) : setStyle({}))}
22+
onClick={() =>
23+
!style.backgroundColor
24+
? setStyle({ backgroundColor: 'red' })
25+
: setStyle({})
26+
}
2327
>
2428
Change to Light/Dark Mode
2529
</Button>

0 commit comments

Comments
 (0)