This commit is contained in:
Romulus21
2022-01-22 23:00:21 +01:00
parent 021848b543
commit 62cb27c85e
18 changed files with 347 additions and 107 deletions

View File

@@ -8,20 +8,12 @@ import Header from './Header';
import Home from '../routes/Home';
import Plant from '../routes/Plant';
import Profile from '../routes/Profile';
import {useEffect} from "preact/hooks";
import Style from "../routes/Style";
const App = () => {
// useEffect(() => {
// if (!Notification) {
// alert('Le navigateur ne supporte pas les notifications.');
// } else if (Notification.permission !== 'granted') {
// Notification.requestPermission();
// }
// }, [])
return (
<div id="app" class="h-screen overflow-auto flex flex-col">
<div id="app" className="h-screen overflow-auto flex flex-col">
<ContextsProviders>
<Header />
<main className="flex-1 dark:bg-gray-800 dark:text-white">
@@ -29,6 +21,7 @@ const App = () => {
<Home path="/" />
<Plant path="plant/:id" />
<Profile path="/profile" />
<Style path="/style" />
</Router>
</main>
</ContextsProviders>