Skip to content

Commit

Permalink
feat(hook): use new hook
Browse files Browse the repository at this point in the history
Import usePersistedState on App.tsx
  • Loading branch information
mateusfg7 committed Sep 1, 2020
1 parent bfa2890 commit 94bb2c7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React from 'react';
import { ThemeProvider } from 'styled-components';
import usePersistedState from './utils/usePersistedState';

import environment from './services/defaultVariables';

Expand All @@ -18,6 +19,8 @@ import Footer from './components/Footer';
import changeStateOfAudio from './functions/changeStateOfAudio';

function App(): JSX.Element {
const [theme, setTheme] = usePersistedState('theme', default_theme);

return (
<ThemeProvider theme={default_theme}>
<div className="App">
Expand Down

0 comments on commit 94bb2c7

Please sign in to comment.