Skip to content

Commit

Permalink
fix: 🐛 jewellery voucher category (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaskaransarkaria authored Jan 2, 2024
1 parent d8b1480 commit 78ee3f4
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions src/routes/classes/beginners/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
let widgetLoaded = false;
let loaded = new Map();
const categoryFn = () => "/shop/category/2854484"; // jewellery voucher category id
const jewelleryVoucherCategory = {
Name: "Jewellery Class Vouchers",
Id: 2854484,
Expand Down Expand Up @@ -83,7 +82,17 @@
</p>
<div class="voucher-container">
<div class="hex-container">
<Hex {categoryFn} category={jewelleryVoucherCategory} bind:loaded />
<Hex
hexHref={`/shop/category/${
jewelleryVoucherCategory.Id
}?name=${encodeURIComponent(
jewelleryVoucherCategory.Name
)}&imgHash=${encodeURIComponent(
jewelleryVoucherCategory.Description
)}`}
category={jewelleryVoucherCategory}
bind:loaded
/>
</div>
<p>
If class dates aren’t yet announced or you're not sure about a date you
Expand Down

0 comments on commit 78ee3f4

Please sign in to comment.