mirror of
https://github.com/yzernik/squeaknode.git
synced 2026-08-19 13:18:26 +02:00
Fix PublicRoute
This commit is contained in:
parent
12ec1bbd59
commit
670da3a9fe
1 changed files with 1 additions and 9 deletions
|
|
@ -60,15 +60,7 @@ export default function App() {
|
|||
<Route
|
||||
{...rest}
|
||||
render={props =>
|
||||
isAuthenticated ? (
|
||||
<Redirect
|
||||
to={{
|
||||
pathname: "/",
|
||||
}}
|
||||
/>
|
||||
) : (
|
||||
React.createElement(component, props)
|
||||
)
|
||||
React.createElement(component, props)
|
||||
}
|
||||
/>
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue