feat: router, tab shell, setup and login pages
This commit is contained in:
14
web/src/pages/SettingsPage.tsx
Normal file
14
web/src/pages/SettingsPage.tsx
Normal file
@@ -0,0 +1,14 @@
|
||||
import { useAuth } from '../auth'
|
||||
|
||||
export default function SettingsPage() {
|
||||
const { user, onLogout } = useAuth()
|
||||
return (
|
||||
<section>
|
||||
<h2 className="mb-2 text-sm font-semibold uppercase tracking-wide text-neutral-400">Settings</h2>
|
||||
<p>Account</p>
|
||||
<p className="text-neutral-400">
|
||||
{user?.username} {user?.isAdmin ? '(admin)' : ''}
|
||||
</p>
|
||||
</section>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user