diff --git a/src/components/Detail/ImageCarousel.astro b/src/components/Detail/ImageCarousel.astro index 4f23d3c..8800a17 100644 --- a/src/components/Detail/ImageCarousel.astro +++ b/src/components/Detail/ImageCarousel.astro @@ -1,6 +1,6 @@ --- import client from "@/data/pocketbase"; -const { recipe } = Astro.props +const { class: className, recipe } = Astro.props async function getLink(img: string) { const record = await client.collection("images").getOne(img) @@ -26,8 +26,8 @@ const links = await Promise.all( const b0 = document.getElementById('dec-button') const b1 = document.getElementById('inc-button') - b0.hidden = true - b1.hidden = true + b0!.hidden = true + b1!.hidden = true } function inc() { @@ -45,7 +45,7 @@ const links = await Promise.all( (window as any).dec = dec; -
Quantity | +Unit | +Food | +
---|---|---|
{ing.quantity} | +{ing.unit} | +{ing.name} | +
{re.name}
+{re.name}
+Ingredients
+{re.name}
- -Steps
+ { steps.map(s => ( +Step {s.index + 1}
+{s.instruction}
+