Skip to content

Commit

Permalink
set theme on page load
Browse files Browse the repository at this point in the history
  • Loading branch information
tytremblay committed Dec 13, 2024
1 parent 86cc983 commit e63e337
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/app.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,19 @@
import { useEffect } from 'react';
import { Footer } from './components/Footer';
import { Header } from './components/Header';
import { Sections } from './components/Sections';
import { CommitAndResetSection } from './components/Sections/CommitAndResetSection/CommitAndResetSection';
import { ConfigSection } from './components/Sections/ConfigSection';
import { useTheme } from './hooks';
import { useQRScoutState } from './store/store';

export function App() {
const formData = useQRScoutState(state => state.formData);
const { setTheme } = useTheme();

useEffect(() => {
setTheme('system');
}, [setTheme]);

return (
<div className="min-h-screen py-2 dark:bg-gray-700">
Expand Down

0 comments on commit e63e337

Please sign in to comment.