feat: trying to add hashes to scripts
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
import { Signal } from "@preact/signals";
|
||||
import type { Ingredient, IngredientGroup } from "@lib/recipeSchema.ts";
|
||||
import { FunctionalComponent } from "preact";
|
||||
import { unitsOfMeasure } from "@lib/parseIngredient.ts";
|
||||
|
||||
function formatAmount(num: number) {
|
||||
@@ -50,14 +49,12 @@ const Ingredient = (
|
||||
);
|
||||
};
|
||||
|
||||
export const IngredientsList: FunctionalComponent<
|
||||
{
|
||||
export const IngredientsList = (
|
||||
{ ingredients, amount, portion }: {
|
||||
ingredients: (Ingredient | IngredientGroup)[];
|
||||
amount: Signal<number>;
|
||||
portion?: number;
|
||||
}
|
||||
> = (
|
||||
{ ingredients, amount, portion },
|
||||
},
|
||||
) => {
|
||||
return (
|
||||
<table class="w-full border-collapse table-auto">
|
||||
|
||||
Reference in New Issue
Block a user