From 29f418cc91f688a763df27f1e4bd708dd45f3daa Mon Sep 17 00:00:00 2001 From: OllyNicholass Date: Tue, 15 Oct 2024 20:48:51 +0100 Subject: [PATCH] feat(#34): update already purchased button --- src/routes/products/[productId]/+page.svelte | 101 ++++--------------- 1 file changed, 21 insertions(+), 80 deletions(-) diff --git a/src/routes/products/[productId]/+page.svelte b/src/routes/products/[productId]/+page.svelte index 5c6593c..b7b1092 100644 --- a/src/routes/products/[productId]/+page.svelte +++ b/src/routes/products/[productId]/+page.svelte @@ -78,9 +78,6 @@ class="data w-full lg:pr-8 pr-0 xl:justify-start justify-center flex items-center max-lg:pb-10 xl:my-2 lg:my-5 my-0" >
-

{item.name}

@@ -270,33 +267,8 @@ all size is available - - {#if !item.isSubscription} + {#if !item.isSubscription && !hasPurchasedProduct}
- {#if !hasPurchasedProduct} - {:else} - - {/if}
{:else} -
- - -
+ {#if hasPurchasedProduct} +
+ +
+ {/if} + {#if item.isSubscription} +
+ +
+ {/if} {/if}