diff --git a/src/routes/profile/(local_user)/blocks/+page.svelte b/src/routes/profile/(local_user)/blocks/+page.svelte index e2c9c878..2bd2ec35 100644 --- a/src/routes/profile/(local_user)/blocks/+page.svelte +++ b/src/routes/profile/(local_user)/blocks/+page.svelte @@ -17,6 +17,8 @@ import Material from 'mono-svelte/materials/Material.svelte' import { Check, Icon, XMark } from 'svelte-hero-icons' import type { PageData } from './$types.js' + import CommonList from '$lib/components/ui/layout/CommonList.svelte' + import EndPlaceholder from '$lib/components/ui/EndPlaceholder.svelte' interface Props { // sveltekit doesn't feel like making types work right now @@ -85,106 +87,109 @@ {$t('routes.profile.blocks.title')} -{#if data.community_blocks?.length > 0 || data.person_blocks?.length > 0 || (data.my_user?.instance_blocks?.length ?? 0) > 0} - {#if data.community_blocks?.length > 0} -
- {$t('content.communities')} - - - -
- {/if} - {#if data.person_blocks?.length > 0} -
- {$t('content.users')} - - - -
- {/if} - {#if data.my_user?.instance_blocks && (data.my_user?.instance_blocks?.length ?? 0) > 0} -
- + {/snippet} + +
+ {/if} + {#if data.my_user?.instance_blocks && (data.my_user?.instance_blocks?.length ?? 0) > 0} + {$t('content.instances')} - - - - + {/snippet} + + + {/if} + {:else} +
+
{/if} -{:else} -
- -
-{/if} +