File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import React from 'react' ;
2- import { Route , BrowserRouter } from 'react-router-dom' ;
2+ import { Route , Router } from 'react-router-dom' ;
33import App from './App' ;
44import Home from './Home/Home' ;
55import Callback from './Callback/Callback' ;
@@ -16,7 +16,7 @@ const handleAuthentication = (nextState, replace) => {
1616
1717export const makeMainRoutes = ( ) => {
1818 return (
19- < BrowserRouter history = { history } component = { App } >
19+ < Router history = { history } component = { App } >
2020 < div >
2121 < Route path = "/" render = { ( props ) => < App auth = { auth } { ...props } /> } />
2222 < Route path = "/home" render = { ( props ) => < Home auth = { auth } { ...props } /> } />
@@ -25,6 +25,6 @@ export const makeMainRoutes = () => {
2525 return < Callback { ...props } />
2626 } } />
2727 </ div >
28- </ BrowserRouter >
28+ </ Router >
2929 ) ;
3030}
Original file line number Diff line number Diff line change 11import React from 'react' ;
2- import { Redirect , Route , BrowserRouter } from 'react-router-dom' ;
2+ import { Redirect , Route , Router } from 'react-router-dom' ;
33import App from './App' ;
44import Home from './Home/Home' ;
55import Profile from './Profile/Profile' ;
@@ -17,7 +17,7 @@ const handleAuthentication = (nextState, replace) => {
1717
1818export const makeMainRoutes = ( ) => {
1919 return (
20- < BrowserRouter history = { history } component = { App } >
20+ < Router history = { history } component = { App } >
2121 < div >
2222 < Route path = "/" render = { ( props ) => < App auth = { auth } { ...props } /> } />
2323 < Route path = "/home" render = { ( props ) => < Home auth = { auth } { ...props } /> } />
@@ -33,6 +33,6 @@ export const makeMainRoutes = () => {
3333 return < Callback { ...props } />
3434 } } />
3535 </ div >
36- </ BrowserRouter >
36+ </ Router >
3737 ) ;
3838}
Original file line number Diff line number Diff line change 11import React from 'react' ;
2- import { Redirect , Route , BrowserRouter } from 'react-router-dom' ;
2+ import { Redirect , Route , Router } from 'react-router-dom' ;
33import App from './App' ;
44import Home from './Home/Home' ;
55import Profile from './Profile/Profile' ;
@@ -18,7 +18,7 @@ const handleAuthentication = (nextState, replace) => {
1818
1919export const makeMainRoutes = ( ) => {
2020 return (
21- < BrowserRouter history = { history } component = { App } >
21+ < Router history = { history } component = { App } >
2222 < div >
2323 < Route path = "/" render = { ( props ) => < App auth = { auth } { ...props } /> } />
2424 < Route path = "/home" render = { ( props ) => < Home auth = { auth } { ...props } /> } />
@@ -41,6 +41,6 @@ export const makeMainRoutes = () => {
4141 return < Callback { ...props } />
4242 } } />
4343 </ div >
44- </ BrowserRouter >
44+ </ Router >
4545 ) ;
4646}
Original file line number Diff line number Diff line change 11import React from 'react' ;
2- import { Redirect , Route , BrowserRouter } from 'react-router-dom' ;
2+ import { Redirect , Route , Router } from 'react-router-dom' ;
33import App from './App' ;
44import Home from './Home/Home' ;
55import Profile from './Profile/Profile' ;
@@ -19,7 +19,7 @@ const handleAuthentication = (nextState, replace) => {
1919
2020export const makeMainRoutes = ( ) => {
2121 return (
22- < BrowserRouter history = { history } component = { App } >
22+ < Router history = { history } component = { App } >
2323 < div >
2424 < Route path = "/" render = { ( props ) => < App auth = { auth } { ...props } /> } />
2525 < Route path = "/home" render = { ( props ) => < Home auth = { auth } { ...props } /> } />
@@ -49,6 +49,6 @@ export const makeMainRoutes = () => {
4949 return < Callback { ...props } />
5050 } } />
5151 </ div >
52- </ BrowserRouter >
52+ </ Router >
5353 ) ;
5454}
You can’t perform that action at this time.
0 commit comments