equal
deleted
inserted
replaced
6 |
6 |
7 const AuthenticatedRoute = ({component, ...props}) => { |
7 const AuthenticatedRoute = ({component, ...props}) => { |
8 |
8 |
9 const { store } = props; |
9 const { store } = props; |
10 const state = store.getState(); |
10 const state = store.getState(); |
11 const isAuthenticated = state.isAuthenticated; |
11 const isAuthenticated = state.getIn(['authStatus', 'isAuthenticated']); |
12 |
12 |
13 if (isAuthenticated) { |
13 if (isAuthenticated) { |
14 return <Route { ...props } component={ component } />; |
14 return <Route { ...props } component={ component } />; |
15 } |
15 } |
16 |
16 |