Skip to content

Commit fab0075

Browse files
authored
Merge pull request #179 from padmajabhol/add-journal
feat: add component to add journal
2 parents 7c851cc + 54395fe commit fab0075

File tree

12 files changed

+2431
-2196
lines changed

12 files changed

+2431
-2196
lines changed

data/db.json

Lines changed: 179 additions & 223 deletions
Large diffs are not rendered by default.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,9 @@
2121
"react-icons": "^4.2.0",
2222
"react-router": "^5.2.0",
2323
"react-router-bootstrap": "^0.25.0",
24-
"react-router-dom": "^5.2.0",
24+
"react-router-dom": "^5.3.3",
2525
"react-scripts": "4.0.3",
26+
"react-switch": "^7.0.0",
2627
"styled-components": "^5.3.5",
2728
"web-vitals": "^1.0.1"
2829
},

src/App.js

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
/* eslint-disable no-unused-vars */
2+
import React from 'react';
3+
import ReactDOM from 'react-dom';
4+
import './index.css';
5+
import 'bootstrap/dist/css/bootstrap.min.css';
6+
import { BrowserRouter as Router, Switch, Route, Redirect } from 'react-router-dom';
7+
import { Journal, Contact, Manifesto, Home } from './pages';
8+
import { Footer, Auth, Header, Login, JournalDetails, AddJournal } from './components';
9+
import Navbar from './components/marginals/Navbar/Navbar';
10+
11+
function App() {
12+
return (
13+
<div className='App'>
14+
<Switch>
15+
<Route exact path='/'>
16+
<Home />
17+
</Route>
18+
<Route path='/manifesto'>
19+
<Manifesto />
20+
</Route>
21+
<Route path='/journal'>
22+
<Journal />
23+
</Route>
24+
<Route path='/addjournal'>
25+
<AddJournal />
26+
</Route>
27+
<Route path='/policy/:id'>
28+
<JournalDetails />
29+
</Route>
30+
<Route path='/Signup'>
31+
<Auth />
32+
</Route>
33+
<Route path='/Login'>
34+
<Login />
35+
</Route>
36+
<Redirect to='/' />
37+
</Switch>
38+
<Navbar />
39+
<Footer />
40+
</div>
41+
);
42+
}
43+
44+
export default App;

0 commit comments

Comments
 (0)