feat(web): add an empty placeholder to the explore page (#9990)

* feat(web): add an empty placeholder to the explore page

* Change the message wording per suggestion

* fix: test

---------

Co-authored-by: Alex Tran <alex.tran1502@gmail.com>
This commit is contained in:
Snowknight26
2024-06-05 07:19:57 -05:00
committed by GitHub
parent abf6fc25f7
commit 97ffddee7c
2 changed files with 5 additions and 1 deletions

View File

@@ -8,6 +8,7 @@
import type { PageData } from './$types';
import { getMetadataSearchQuery } from '$lib/utils/metadata-search';
import { t } from 'svelte-i18n';
import EmptyPlaceholder from '$lib/components/shared-components/empty-placeholder.svelte';
export let data: PageData;
@@ -102,5 +103,7 @@
</div>
{/if}
<hr class="mb-4 dark:border-immich-dark-gray" />
{#if !hasPeople && places.length === 0}
<EmptyPlaceholder text={$t('no_explore_results_message')} />
{/if}
</UserPageLayout>