Novo layout
This commit is contained in:
@@ -2,8 +2,11 @@ import { Routes, Route, BrowserRouter as Router } from 'react-router-dom';
|
||||
import { Toaster } from 'react-hot-toast';
|
||||
import Home from './pages/Home';
|
||||
import { Layout } from './layout/Layout';
|
||||
import { useTheme } from './context/ThemeContext';
|
||||
|
||||
function App() {
|
||||
const { theme } = useTheme();
|
||||
|
||||
return (
|
||||
<Router>
|
||||
<Layout>
|
||||
@@ -13,7 +16,14 @@ function App() {
|
||||
<Route path="/NISS" />
|
||||
<Route path="/CC" />
|
||||
</Routes>
|
||||
<Toaster position="top-right" />
|
||||
<Toaster position="top-right"
|
||||
toastOptions={{
|
||||
style: {
|
||||
background: theme === 'dark' ? '#1f2937' : '#fff',
|
||||
color: theme === 'dark' ? '#fff' : '#000',
|
||||
},
|
||||
}}
|
||||
theme={theme} />
|
||||
</Layout>
|
||||
</Router>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user