-
Notifications
You must be signed in to change notification settings - Fork 453
Expand file tree
/
Copy pathmain.tsx
More file actions
53 lines (52 loc) · 1.6 KB
/
main.tsx
File metadata and controls
53 lines (52 loc) · 1.6 KB
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
import { StrictMode } from 'react';
import { createRoot } from 'react-dom/client';
import { BrowserRouter, Route, Routes } from 'react-router';
import './index.css';
import { ClerkProvider } from '@clerk/react';
import { Home } from './routes/Home';
import { SignIn } from './routes/SignIn';
import { SignUp } from './routes/SignUp';
import { Protected } from './routes/Protected';
import { Waitlist } from './routes/Waitlist';
createRoot(document.getElementById('root')!).render(
<StrictMode>
<div className='bg-muted flex min-h-svh flex-col items-center justify-center gap-6 p-6 md:p-10'>
<div className='flex w-full max-w-sm flex-col gap-6'>
<ClerkProvider
clerkJSUrl={import.meta.env.VITE_CLERK_JS_URL as string}
clerkUIUrl={import.meta.env.VITE_CLERK_UI_URL as string}
appearance={{
options: {
showOptionalFields: true,
},
}}
>
<BrowserRouter>
<Routes>
<Route
path='/'
element={<Home />}
/>
<Route
path='/sign-in'
element={<SignIn />}
/>
<Route
path='/sign-up'
element={<SignUp />}
/>
<Route
path='/waitlist'
element={<Waitlist />}
/>
<Route
path='/protected'
element={<Protected />}
/>
</Routes>
</BrowserRouter>
</ClerkProvider>
</div>
</div>
</StrictMode>,
);