From c0bbb05efbb4e4f7547cb511f4d72ba6706ddc25 Mon Sep 17 00:00:00 2001 From: Tarek Date: Fri, 18 Apr 2025 09:44:21 +0200 Subject: [PATCH 01/12] Update profile and search result components to display 'Gratis' for hourly prices less than 1 SEK --- .../components/molecules/profile-header-info.svelte | 6 +++++- src/lib/components/molecules/search-result-item.svelte | 8 +++++++- src/routes/(marketing)/profile/[slug]/+page.svelte | 10 +++++++--- 3 files changed, 19 insertions(+), 5 deletions(-) diff --git a/src/lib/components/molecules/profile-header-info.svelte b/src/lib/components/molecules/profile-header-info.svelte index 8e46c3f..4f17758 100644 --- a/src/lib/components/molecules/profile-header-info.svelte +++ b/src/lib/components/molecules/profile-header-info.svelte @@ -35,7 +35,11 @@ {#if listing}
- {listing.hourlyPrice} SEK + {#if listing.hourlyPrice < 1} + Gratis + {:else} + {listing.hourlyPrice} SEK + {/if}

60 minuter

diff --git a/src/lib/components/molecules/search-result-item.svelte b/src/lib/components/molecules/search-result-item.svelte index ed5a122..d7f700b 100644 --- a/src/lib/components/molecules/search-result-item.svelte +++ b/src/lib/components/molecules/search-result-item.svelte @@ -63,7 +63,13 @@

- {result.hourlyPrice} SEK + + {#if result.hourlyPrice < 1} + Gratis + {:else} + {result.hourlyPrice} SEK + {/if} +

60 minuter

diff --git a/src/routes/(marketing)/profile/[slug]/+page.svelte b/src/routes/(marketing)/profile/[slug]/+page.svelte index 738ec9b..216e971 100644 --- a/src/routes/(marketing)/profile/[slug]/+page.svelte +++ b/src/routes/(marketing)/profile/[slug]/+page.svelte @@ -127,9 +127,9 @@