add lang
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user