Backup before moving to local state instead of hooks.

This commit is contained in:
Patrick Fic
2019-12-06 21:10:05 -08:00
parent 1b759924a4
commit 8a72294c91
9 changed files with 67 additions and 46 deletions

View File

@@ -7,7 +7,7 @@ export default ({ component: Component, isAuthorized, ...rest }) => (
isAuthorized === true ? (
<Component {...props} />
) : (
<Redirect to="/signin" />
<Redirect to="/unauthorized" />
)
}
/>