feat(frontend): preference cheatsheet
This commit is contained in:
parent
546e900204
commit
8a2ffd7d69
3 changed files with 33 additions and 2 deletions
|
@ -9,6 +9,7 @@
|
|||
import Paginator from "$components/Paginator.svelte";
|
||||
import MemberCard from "$components/profile/user/MemberCard.svelte";
|
||||
import ProfileButtons from "$components/profile/ProfileButtons.svelte";
|
||||
import PreferenceCheatsheet from "$components/profile/PreferenceCheatsheet.svelte";
|
||||
|
||||
type Props = { data: PageData };
|
||||
let { data }: Props = $props();
|
||||
|
@ -28,7 +29,7 @@
|
|||
|
||||
<ProfileHeader name="@{data.user.username}" profile={data.user} offset={data.user.utc_offset} />
|
||||
<ProfileFields profile={data.user} {allPreferences} />
|
||||
|
||||
<PreferenceCheatsheet profile={data.user} {allPreferences} />
|
||||
<ProfileButtons
|
||||
meUser={data.meUser}
|
||||
user={data.user.username}
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
import { Icon } from "@sveltestrap/sveltestrap";
|
||||
import { t } from "$lib/i18n";
|
||||
import ProfileButtons from "$components/profile/ProfileButtons.svelte";
|
||||
import PreferenceCheatsheet from "$components/profile/PreferenceCheatsheet.svelte";
|
||||
|
||||
type Props = { data: PageData };
|
||||
let { data }: Props = $props();
|
||||
|
@ -38,7 +39,7 @@
|
|||
|
||||
<ProfileHeader name="{data.member.name} (@{data.member.user.username})" profile={data.member} />
|
||||
<ProfileFields profile={data.member} {allPreferences} />
|
||||
|
||||
<PreferenceCheatsheet profile={data.member} {allPreferences} />
|
||||
<ProfileButtons
|
||||
meUser={data.meUser}
|
||||
user={data.member.user.username}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue