mirror of
https://github.com/revoltchat/revite.git
synced 2024-12-24 22:52:09 -05:00
Fix inaccessible invite page / reset page / verify page when logged in.
This commit is contained in:
parent
52875ab197
commit
45c7cd0307
1 changed files with 11 additions and 0 deletions
|
@ -8,6 +8,8 @@ import { CheckAuth } from "../context/revoltjs/CheckAuth";
|
||||||
import Masks from "../components/ui/Masks";
|
import Masks from "../components/ui/Masks";
|
||||||
import Preloader from "../components/ui/Preloader";
|
import Preloader from "../components/ui/Preloader";
|
||||||
|
|
||||||
|
import Invite from "./invite/Invite";
|
||||||
|
|
||||||
const Login = lazy(() => import("./login/Login"));
|
const Login = lazy(() => import("./login/Login"));
|
||||||
const RevoltApp = lazy(() => import("./RevoltApp"));
|
const RevoltApp = lazy(() => import("./RevoltApp"));
|
||||||
|
|
||||||
|
@ -19,6 +21,15 @@ export function App() {
|
||||||
// @ts-expect-error typings mis-match between preact... and preact? */}
|
// @ts-expect-error typings mis-match between preact... and preact? */}
|
||||||
<Suspense fallback={<Preloader type="spinner" />}>
|
<Suspense fallback={<Preloader type="spinner" />}>
|
||||||
<Switch>
|
<Switch>
|
||||||
|
<Route path="/login/verify/:token">
|
||||||
|
<Login />
|
||||||
|
</Route>
|
||||||
|
<Route path="/login/reset/:token">
|
||||||
|
<Login />
|
||||||
|
</Route>
|
||||||
|
<Route path="/invite/:code">
|
||||||
|
<Invite />
|
||||||
|
</Route>
|
||||||
<Route path="/login">
|
<Route path="/login">
|
||||||
<CheckAuth>
|
<CheckAuth>
|
||||||
<Login />
|
<Login />
|
||||||
|
|
Loading…
Reference in a new issue