[PIE-28] Switch to type-safe API #12
@ -22,12 +22,12 @@ const re = await client.getRecipe(recipeid as string)
|
|||||||
<InfoView re={re} />
|
<InfoView re={re} />
|
||||||
|
|
||||||
<p class="text-[22pt] font-bold 'md:mt-4'">Ingredients</p>
|
<p class="text-[22pt] font-bold 'md:mt-4'">Ingredients</p>
|
||||||
<IngredientTableView class:list={['md:w-80', 'px-4']} ingredients={re.expand.ingredients} />
|
<IngredientTableView class:list={['md:w-80', 'px-4']} ingredients={re.expand.ingredients ?? []} />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="flex mt-4 md:flex-2/3 w-full flex-col">
|
<div class="flex mt-4 md:flex-2/3 w-full flex-col">
|
||||||
<!-- Steps -->
|
<!-- Steps -->
|
||||||
<StepView class="md:ml-3" steps={re.expand.steps} />
|
<StepView class="md:ml-3" steps={re.expand.steps ?? []} />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user