Skip to content

Commit d2d2786

Browse files
committed
fix admin
1 parent ac47310 commit d2d2786

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

admin/Admin.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import * as actions from '~/admin/rpc/admin.ts'
44
import { state } from '~/admin/state.ts'
55
import { icon } from '~/lib/icon.ts'
66
import { Header } from '~/src/comp/Header.tsx'
7-
import { Logout } from '~/src/pages/Logout'
87
import { loginUserSession, maybeLogin, whoami } from '~/src/rpc/auth.ts'
98

109
const EDITABLE = new Set(['nick', 'email'])
@@ -93,7 +92,7 @@ export function Admin() {
9392

9493
<div class="flex items-center gap-2">
9594
<span>{state.user?.nick}</span>
96-
<Logout then={() => location.href = '/'} />
95+
9796
</div>
9897
</Header>
9998

0 commit comments

Comments
 (0)