move logout functionality to logout page
This commit is contained in:
parent
f308d32739
commit
518fb7d9de
5 changed files with 29 additions and 21 deletions
|
|
@ -9,7 +9,7 @@ const Authenticated = ({ loggingIn, authenticated, component, path, exact, ...re
|
|||
render={props => (
|
||||
authenticated ?
|
||||
(React.createElement(component, { ...props, ...rest, loggingIn, authenticated })) :
|
||||
(<Redirect to="/logout" />)
|
||||
(<Redirect to="/login" />)
|
||||
)}
|
||||
/>
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue