feat: add user page to profile page
This commit is contained in:
1 parent
a5c41a9c90
commit
d193719475
8 files changed
+102
-5
No files matched your search
@@ -0,0 +1,23 @@
|
||||
<script>
|
||||
import { goto } from '$app/navigation'
|
||||
import { page } from '$app/stores'
|
||||
|
||||
import MultiSelect from '$lib/components/input/MultiSelect.svelte'
|
||||
</script>
|
||||
|
||||
<svelte:head>
|
||||
<title>Profile</title>
|
||||
</svelte:head>
|
||||
|
||||
<div class="flex flex-col gap-4 h-full">
|
||||
<MultiSelect
|
||||
headless
|
||||
options={['/profile/user', '/profile/settings']}
|
||||
optionNames={['User', 'Settings']}
|
||||
selected={$page.url.pathname}
|
||||
on:select={(e) => {
|
||||
goto(e.detail)
|
||||
}}
|
||||
/>
|
||||
<slot />
|
||||
</div>
|
||||
Reference in new issue
Block a user