From 5c21293a7a886d0c5f89bad4ffe92b5f0ae18b29 Mon Sep 17 00:00:00 2001 From: James Xylight Date: Sat, 8 Feb 2025 16:17:16 -0800 Subject: [PATCH] misc: redesign placeholders --- src/lib/components/ui/Pageination.svelte | 10 +++++----- src/lib/components/ui/Placeholder.svelte | 16 ++++++++-------- src/lib/i18n/en.json | 2 +- src/routes/inbox/+page.svelte | 1 + src/routes/search/+page.svelte | 17 +++++++++-------- 5 files changed, 24 insertions(+), 22 deletions(-) diff --git a/src/lib/components/ui/Pageination.svelte b/src/lib/components/ui/Pageination.svelte index 02f47a25..01ae6525 100644 --- a/src/lib/components/ui/Pageination.svelte +++ b/src/lib/components/ui/Pageination.svelte @@ -5,7 +5,7 @@ import { backOut } from 'svelte/easing' import { fly } from 'svelte/transition' import { page as pageData } from '$app/state' - import { invalidate, invalidateAll } from '$app/navigation' + import { invalidate } from '$app/navigation' interface Props { page?: number @@ -34,8 +34,8 @@ current.delete(Array.from(newParams.keys())[0]) current.append( - Array.from(newParams.keys())[0][0], - Array.from(newParams.keys())[0][1], + Array.from(newParams.entries())[0][0], + Array.from(newParams.entries())[0][1], ) return `?${current.toString()}` @@ -56,7 +56,7 @@