mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-08 23:07:54 +00:00
Fixed routing
This commit is contained in:
parent
fe13aaa9e2
commit
1ed5405652
4 changed files with 5 additions and 4 deletions
|
|
@ -65,10 +65,10 @@ export default function App() {
|
|||
<BS.Container>
|
||||
<Switch>
|
||||
<Route path="/dash" >
|
||||
{ !localStorage.getItem('token') || isInvalid ? <Redirect to="/"/> : <Dash/>
|
||||
{ !localStorage.getItem('token') || isInvalid ? <Redirect to="/pk-webs"/> : <Dash/>
|
||||
}
|
||||
</Route>
|
||||
<Route exact path="/">
|
||||
<Route exact path="/pk-webs">
|
||||
{ isLoading ? <Loading /> :
|
||||
<BS.Card className="mb-3 mt-3">
|
||||
<BS.Card.Header className="d-flex align-items-center justify-content-between">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue