Skip to content

Commit

Permalink
feat(theme): theme object
Browse files Browse the repository at this point in the history
gather themes in a object
  • Loading branch information
mateusfg7 committed Sep 1, 2020
1 parent 32457c1 commit 039102b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ function App(): JSX.Element {
const toggleTheme = (newTheme: DefaultTheme) => {
setTheme(newTheme);
};
const themes = {
default: default_theme,
dark: dark_theme,
};

return (
<ThemeProvider theme={theme}>
Expand Down

0 comments on commit 039102b

Please sign in to comment.