File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -7,9 +7,9 @@ import Router from 'react-router/BrowserRouter'
7
7
8
8
////////////////////////////////////////////////////////////
9
9
// 1. Click the public page
10
- // 2. Click the protected page<
10
+ // 2. Click the protected page
11
11
// 3. Log in
12
- // 4. Click the back button, note the url each time
12
+ // 4. Click the back button, note the URL each time
13
13
14
14
////////////////////////////////////////////////////////////
15
15
const fakeAuth = {
@@ -70,15 +70,12 @@ const MatchWhenAuthorized = ({ component: Component, ...rest }) => (
70
70
) } />
71
71
)
72
72
73
-
74
73
////////////////////////////////////////////////////////////
75
74
const Protected = ( ) => < h3 > Protected</ h3 >
76
75
const Public = ( ) => < h3 > Public</ h3 >
77
76
78
-
79
77
////////////////////////////////////////////////////////////
80
78
class Login extends React . Component {
81
-
82
79
state = {
83
80
redirectToReferrer : false
84
81
}
@@ -110,6 +107,4 @@ class Login extends React.Component {
110
107
}
111
108
}
112
109
113
-
114
-
115
110
export default AuthExample
You can’t perform that action at this time.
0 commit comments