From 909d61525ac9ea2592f04a66c27fac192a976354 Mon Sep 17 00:00:00 2001 From: Hadi <112569860+anotherhadi@users.noreply.github.com> Date: Tue, 17 Mar 2026 00:04:06 +0100 Subject: [PATCH] Improvement, Fixes Signed-off-by: Hadi <112569860+anotherhadi@users.noreply.github.com> --- src/components/Nav.svelte | 9 +++++++-- src/components/Result.svelte | 14 ++------------ src/components/SearchApp.svelte | 2 +- src/pages/api/search.ts | 6 +++++- src/types/nav.ts | 11 +++++++++++ 5 files changed, 26 insertions(+), 16 deletions(-) diff --git a/src/components/Nav.svelte b/src/components/Nav.svelte index ddb7e0f..207c2b1 100644 --- a/src/components/Nav.svelte +++ b/src/components/Nav.svelte @@ -2,8 +2,13 @@ import { Menu } from "lucide-svelte"; import type { NavItem } from "../types/nav"; - export let title: string = ""; - export let navLinks: NavItem[] = []; + let { + title = "", + navLinks = [], + }: { + title?: string; + navLinks?: NavItem[]; + } = $props();
diff --git a/src/components/Result.svelte b/src/components/Result.svelte index 8a4f19c..1e00e5a 100644 --- a/src/components/Result.svelte +++ b/src/components/Result.svelte @@ -1,18 +1,8 @@