From 2f1257fffa03380f2b0fa43c8290209c075224cd Mon Sep 17 00:00:00 2001 From: Xyphyn Date: Tue, 25 Jul 2023 19:15:50 -0700 Subject: [PATCH] misc: Add empty search to community search --- src/routes/communities/+page.svelte | 45 +++++++++++++++++++---------- 1 file changed, 29 insertions(+), 16 deletions(-) diff --git a/src/routes/communities/+page.svelte b/src/routes/communities/+page.svelte index dc2b6625..3a4cd7af 100644 --- a/src/routes/communities/+page.svelte +++ b/src/routes/communities/+page.svelte @@ -6,6 +6,7 @@ ChatBubbleOvalLeftEllipsis, Icon, PencilSquare, + QuestionMarkCircle, UserGroup, } from 'svelte-hero-icons' import CommunityLink from '$lib/components/community/CommunityLink.svelte' @@ -60,6 +61,17 @@ +{#if data.communities.length > 0} +
+ -
+ goto($page.url.toString(), { + invalidateAll: true, + }) + }} + > + Next + + +{/if}