[PIE-28] Switch to type-safe API #12

Merged
breadone merged 9 commits from PIE-28-2 into main 2025-08-16 13:17:10 +12:00
Showing only changes of commit 914633a793 - Show all commits

View File

@ -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>