refactor: simplify parse ingredients code
This commit is contained in:
@ -46,17 +46,19 @@ function ValidRecipe({
|
||||
portion={portion}
|
||||
/>
|
||||
<h3 class="text-3xl my-5">Preparation</h3>
|
||||
<ol class="list-decimal grid gap-4">
|
||||
{recipe.instructions && (recipe.instructions.map((instruction) => {
|
||||
return (
|
||||
<li
|
||||
dangerouslySetInnerHTML={{
|
||||
__html: renderMarkdown(instruction),
|
||||
}}
|
||||
/>
|
||||
);
|
||||
}))}
|
||||
</ol>
|
||||
<div class="pl-2">
|
||||
<ol class="list-decimal grid gap-4">
|
||||
{recipe.instructions && (recipe.instructions.map((instruction) => {
|
||||
return (
|
||||
<li
|
||||
dangerouslySetInnerHTML={{
|
||||
__html: renderMarkdown(instruction),
|
||||
}}
|
||||
/>
|
||||
);
|
||||
}))}
|
||||
</ol>
|
||||
</div>
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user