-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
32 lines (28 loc) · 930 Bytes
/
App.js
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
import React from 'react';
import {BrowserRouter as Router, Route} from 'react-router-dom';
import {Container} from 'semantic-ui-react'
import 'semantic-ui-css/semantic.min.css';
import './App.css';
import {AuthProvider} from './context/auth';
import AuthRoute from './util/AuthRoute' ;
import MenuBar from './components/menu';
import Home from './pages/home';
import Login from './pages/login';
import Register from './pages/register';
import SinglePost from './pages/SinglePost'
function App() {
return (
<AuthProvider>
<Router>
<Container className='deneme'>
<MenuBar />
<Route exact path='/' component={Home} />
<AuthRoute exect path='/login' component={Login} />
<AuthRoute exect path='/register' component={Register} />
<Route exact path='/posts/:postId' component={SinglePost} />
</Container>
</Router>
</AuthProvider>
);
}
export default App;