Backup before moving to local state instead of hooks.
This commit is contained in:
@@ -7,7 +7,7 @@ export default ({ component: Component, isAuthorized, ...rest }) => (
|
||||
isAuthorized === true ? (
|
||||
<Component {...props} />
|
||||
) : (
|
||||
<Redirect to="/signin" />
|
||||
<Redirect to="/unauthorized" />
|
||||
)
|
||||
}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user