Skip to content

Commit 986a46e

Browse files
committed
removing component from Router
1 parent 3bf208e commit 986a46e

5 files changed

Lines changed: 5 additions & 5 deletions

File tree

01-Login/src/routes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const handleAuthentication = ({location}) => {
1616

1717
export const makeMainRoutes = () => {
1818
return (
19-
<Router history={history} component={App}>
19+
<Router history={history}>
2020
<div>
2121
<Route path="/" render={(props) => <App auth={auth} {...props} />} />
2222
<Route path="/home" render={(props) => <Home auth={auth} {...props} />} />

02-User-Profile/src/routes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const handleAuthentication = ({location}) => {
1717

1818
export const makeMainRoutes = () => {
1919
return (
20-
<Router history={history} component={App}>
20+
<Router history={history}>
2121
<div>
2222
<Route path="/" render={(props) => <App auth={auth} {...props} />} />
2323
<Route path="/home" render={(props) => <Home auth={auth} {...props} />} />

03-Calling-an-API/src/routes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const handleAuthentication = ({location}) => {
1818

1919
export const makeMainRoutes = () => {
2020
return (
21-
<Router history={history} component={App}>
21+
<Router history={history}>
2222
<div>
2323
<Route path="/" render={(props) => <App auth={auth} {...props} />} />
2424
<Route path="/home" render={(props) => <Home auth={auth} {...props} />} />

04-Authorization/src/routes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const handleAuthentication = ({location}) => {
1919

2020
export const makeMainRoutes = () => {
2121
return (
22-
<Router history={history} component={App}>
22+
<Router history={history}>
2323
<div>
2424
<Route path="/" render={(props) => <App auth={auth} {...props} />} />
2525
<Route path="/home" render={(props) => <Home auth={auth} {...props} />} />

05-Token-Renewal/src/routes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const handleAuthentication = ({location}) => {
1717

1818
export const makeMainRoutes = () => {
1919
return (
20-
<Router history={history} component={App}>
20+
<Router history={history}>
2121
<div>
2222
<Route path="/" render={props => <App auth={auth} {...props} />} />
2323
<Route path="/home" render={props => <Home auth={auth} {...props} />} />

0 commit comments

Comments
 (0)