We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac47310 commit d2d2786Copy full SHA for d2d2786
admin/Admin.tsx
@@ -4,7 +4,6 @@ import * as actions from '~/admin/rpc/admin.ts'
4
import { state } from '~/admin/state.ts'
5
import { icon } from '~/lib/icon.ts'
6
import { Header } from '~/src/comp/Header.tsx'
7
-import { Logout } from '~/src/pages/Logout'
8
import { loginUserSession, maybeLogin, whoami } from '~/src/rpc/auth.ts'
9
10
const EDITABLE = new Set(['nick', 'email'])
@@ -93,7 +92,7 @@ export function Admin() {
93
92
94
<div class="flex items-center gap-2">
95
<span>{state.user?.nick}</span>
96
- <Logout then={() => location.href = '/'} />
+
97
</div>
98
</Header>
99
0 commit comments