bind the new page
Šī revīzija ir iekļauta:
15
src/App.tsx
15
src/App.tsx
@@ -1,19 +1,20 @@
|
||||
import React from 'react';
|
||||
import { BrowserRouter, Routes, Route } from 'react-router-dom';
|
||||
import { Auth } from './components/auth';
|
||||
import { Auth, Login, Logout, NavBar, Overview } from './components';
|
||||
import { AuthProvider } from './contexts';
|
||||
import './App.css';
|
||||
import { Overview } from './components/overview';
|
||||
|
||||
const App: React.FC = () => (
|
||||
<>
|
||||
<BrowserRouter>
|
||||
<AuthProvider>
|
||||
<Routes>
|
||||
<Route index element={<Login />} />
|
||||
<Route path='/auth' element={<Auth />} />
|
||||
<Route path='/overview' element={<Overview />} />
|
||||
</Routes>
|
||||
<NavBar />
|
||||
<Routes>
|
||||
<Route index element={<Login />} />
|
||||
<Route path='/auth' element={<Auth />} />
|
||||
<Route path='/overview' element={<Overview />} />
|
||||
<Route path='/logout' element={<Logout />} />
|
||||
</Routes>
|
||||
</AuthProvider>
|
||||
</BrowserRouter>
|
||||
</>
|
||||
|
||||
7
src/components/index.ts
Parasts fails
7
src/components/index.ts
Parasts fails
@@ -0,0 +1,7 @@
|
||||
import { Auth } from './auth';
|
||||
import { Login } from './login';
|
||||
import { Logout } from './logout';
|
||||
import { NavBar } from './navbar';
|
||||
import { Overview } from './overview';
|
||||
|
||||
export { Auth, Login, Logout, NavBar, Overview };
|
||||
Atsaukties uz šo jaunā problēmā
Block a user