fix(invite): allow logged out users to view invites

This commit is contained in:
Paul Makles
2021-12-28 12:24:35 +00:00
parent ce3be17b74
commit b5077b62ff
4 changed files with 19 additions and 10 deletions

View File

@@ -31,6 +31,16 @@ export function App() {
<Route path="/login/reset/:token">
<Login />
</Route>
<Route path="/invite/:code">
<CheckAuth blockRender>
<FakeClient>
<Invite />
</FakeClient>
</CheckAuth>
<CheckAuth auth blockRender>
<Invite />
</CheckAuth>
</Route>
<Route path="/login">
<CheckAuth>
<Login />
@@ -41,11 +51,6 @@ export function App() {
<RevoltApp />
</CheckAuth>
</Route>
<Route path="/invite/:code">
<FakeClient>
<Invite />
</FakeClient>
</Route>
</Switch>
</Suspense>
</Context>