move logout functionality to logout page

This commit is contained in:
cleverbeagle 2017-09-07 10:11:58 -05:00
parent f308d32739
commit 518fb7d9de
5 changed files with 29 additions and 21 deletions

View file

@ -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" />)
)}
/>
);