blob: ab749abfe0dfca86ac5b3260d05bd7983d8621d3 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
import { useState } from 'react'
import { BrowserRouter, Routes, Route } from "react-router-dom";
import { createClient } from '@supabase/supabase-js'
import './App.css'
import Home from './pages/Home'
import Login from './pages/Login'
const supabase = createClient('https://slpoocycjgqsuoedhkbn.supabase.co', 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6InNscG9vY3ljamdxc3VvZWRoa2JuIiwicm9sZSI6ImFub24iLCJpYXQiOjE3MTUyMDU0MjUsImV4cCI6MjAzMDc4MTQyNX0.xZYRTRN65rlms1Hb96IBAQvw3EGtMzUxlGPP5TVey34')
function App() {
const [session, setSession] = useState(null)
return (
<>
<BrowserRouter>
<Routes>
<Route index element={
<Home supabase={supabase} session={session} />
} />
<Route path="/login" element={
<Login supabase={supabase} session={session} setSession={setSession} />
} />
<Route path="*" element={<p>notfound</p>} />
</Routes>
</BrowserRouter>
</>
)
}
export default App
|