11import React from 'react' ;
22import Layout from './components/Layout' ;
3- import { BrowserRouter as Router , Switch , Route } from " react-router-dom" ;
3+ import { BrowserRouter as Router , Switch , Route } from ' react-router-dom' ;
44
55import Team from './pages/Team' ;
66import Home from './pages/Home' ;
@@ -16,24 +16,24 @@ import NotFoundPage from './components/NotFoundPage';
1616import './App.css' ;
1717
1818function App ( ) {
19- return (
20- < Router >
21- < Layout >
22- < Switch >
23- < Route exact path = "/" component = { Home } />
24- < Route path = "/team" component = { Team } />
25- < Route path = "/news" component = { News } />
26- < Route path = "/article/:slug" component = { NewsDetail } />
27- < Route path = "/videos" component = { Videos } />
28- < Route path = "/laws" component = { Laws } />
29- < Route path = "/donate" component = { Donate } />
30- < Route path = "/career" component = { Career } />
31- < Route path = "/terms-and-conditions" component = { TermsAndConditions } />
32- < Route path = "*" component = { NotFoundPage } />
33- </ Switch >
34- </ Layout >
35- </ Router >
36- ) ;
19+ return (
20+ < Router forceRefresh >
21+ < Layout >
22+ < Switch >
23+ < Route exact path = "/" component = { Home } />
24+ < Route path = "/team" component = { Team } />
25+ < Route path = "/news" component = { News } />
26+ < Route path = "/article/:slug" component = { NewsDetail } />
27+ < Route path = "/videos" component = { Videos } />
28+ < Route path = "/laws" component = { Laws } />
29+ < Route path = "/donate" component = { Donate } />
30+ < Route path = "/career" component = { Career } />
31+ < Route path = "/terms-and-conditions" component = { TermsAndConditions } />
32+ < Route path = "*" component = { NotFoundPage } />
33+ </ Switch >
34+ </ Layout >
35+ </ Router >
36+ ) ;
3737}
3838
3939export default App ;
0 commit comments