misc: change $site to a $state
This commit is contained in:
85 files changed
+153
-140
No files matched your search
@@ -2,7 +2,7 @@
|
||||
import SiteCard from '$lib/components/lemmy/SiteCard.svelte'
|
||||
import Markdown from '$lib/components/markdown/Markdown.svelte'
|
||||
import Header from '$lib/components/ui/layout/pages/Header.svelte'
|
||||
import { site } from '$lib/lemmy'
|
||||
import { site } from '$lib/lemmy.svelte'
|
||||
import { t } from '$lib/translations'
|
||||
import { Button, Modal, Spinner } from 'mono-svelte'
|
||||
|
||||
@@ -10,11 +10,11 @@
|
||||
</script>
|
||||
|
||||
<div class="flex flex-row w-full">
|
||||
{#if $site}
|
||||
{#if site.data}
|
||||
<div class="flex flex-col flex-1 gap-4">
|
||||
<Header pageHeader>{$t('routes.legal.title')}</Header>
|
||||
<Markdown
|
||||
source={$site.site_view.local_site.legal_information ??
|
||||
source={site.data.site_view.local_site.legal_information ??
|
||||
$t('routes.legal.noLegal')}
|
||||
/>
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user