diff --git a/frontend/src/components/recipes/RecipeEditor.tsx b/frontend/src/components/recipes/RecipeEditor.tsx index 040fc5b..56cdd2b 100644 --- a/frontend/src/components/recipes/RecipeEditor.tsx +++ b/frontend/src/components/recipes/RecipeEditor.tsx @@ -94,7 +94,7 @@ export default function RecipeEditor({ recipe, onSave, onCancel }: RecipeEditorP placeholder="1" value={draft.servings.amount} onChange={e => { - let tempServings = draft.servings + const tempServings = draft.servings tempServings.amount = Number(e.target.value) setDraft({...draft, servings: tempServings}) }} @@ -104,7 +104,7 @@ export default function RecipeEditor({ recipe, onSave, onCancel }: RecipeEditorP placeholder="Persons" value={draft.servings.unit} onChange={e => { - let tempServings = draft.servings + const tempServings = draft.servings tempServings.unit = e.target.value setDraft({...draft, servings: tempServings}) }} diff --git a/frontend/src/components/recipes/RecipeListPage.tsx b/frontend/src/components/recipes/RecipeListPage.tsx index f086f1d..cd08be9 100644 --- a/frontend/src/components/recipes/RecipeListPage.tsx +++ b/frontend/src/components/recipes/RecipeListPage.tsx @@ -5,6 +5,7 @@ import { fetchRecipeList } from "../../api/recipePoint" import { useNavigate } from "react-router-dom" import { getRecipeAddUrl, getRecipeDetailUrl } from "../../routes" import SearchField from "../basics/SearchField" +import RecipeListToolbar from "./RecipeListToolbar" /** * Displays a list of recipes in a sidebar layout. @@ -44,25 +45,11 @@ export default function RecipeListPage() { {/* Header - remains in position when scrolling */}