fix: use pageheader where needed
This commit is contained in:
1 parent
7c66fea335
commit
1ab3f404cc
28 files changed
+132
-135
No files matched your search
@@ -88,7 +88,7 @@
|
||||
<h1 class="font-bold text-3xl">{$t('routes.profile.credentials')}</h1>
|
||||
<div class="flex flex-row flex-wrap gap-8">
|
||||
<div class="flex flex-col gap-2 max-w-sm w-full">
|
||||
<h1 class="font-bold text-2xl">{$t('form.password')}</h1>
|
||||
<Header pageHeader>{$t('form.password')}</Header>
|
||||
<form
|
||||
on:submit|preventDefault={changePassword}
|
||||
class="max-w-sm flex flex-col gap-4"
|
||||
|
||||
@@ -158,7 +158,7 @@
|
||||
{/if}
|
||||
|
||||
<form class="flex flex-col gap-4 h-full" on:submit|preventDefault={save}>
|
||||
<Header>{$t('routes.profile.settings')}</Header>
|
||||
<Header pageHeader>{$t('routes.profile.settings')}</Header>
|
||||
{#if data.my_user?.local_user_view?.local_user && formData}
|
||||
<TextInput
|
||||
label={$t('form.profile.displayName')}
|
||||
|
||||
@@ -4,10 +4,13 @@ import { getItemPublished } from '$lib/lemmy/item.js'
|
||||
import type { SortType } from 'lemmy-js-client'
|
||||
import { get } from 'svelte/store'
|
||||
|
||||
// disable ssr, as the server cannot be authenticated
|
||||
export let ssr = false
|
||||
|
||||
export async function load({ params, url, fetch }) {
|
||||
const my_user =
|
||||
get(profile)?.user ??
|
||||
(await client({ auth: get(profile)?.jwt }).getSite()).my_user
|
||||
(await client({ auth: get(profile)?.jwt, func: fetch }).getSite()).my_user
|
||||
|
||||
return {
|
||||
my_user: my_user,
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
export let data
|
||||
</script>
|
||||
|
||||
<Header>{$t('routes.profile.media.title')}</Header>
|
||||
<Header pageHeader>{$t('routes.profile.media.title')}</Header>
|
||||
<div class="media-grid">
|
||||
{#each data.images as image (image.local_image.pictrs_delete_token)}
|
||||
<div animate:flip={{ duration: 500, easing: expoInOut }}>
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import { profile } from '$lib/auth.js'
|
||||
import { client } from '$lib/lemmy.js'
|
||||
import { error } from '@sveltejs/kit'
|
||||
import { get } from 'svelte/store'
|
||||
|
||||
export async function load({ fetch, url }) {
|
||||
|
||||
Reference in new issue
Block a user