diff --git a/frontend/src/pages/shoppingLists/CompletedListView.tsx b/frontend/src/pages/shoppingLists/CompletedListView.tsx index ba294aa..d7d08e4 100644 --- a/frontend/src/pages/shoppingLists/CompletedListView.tsx +++ b/frontend/src/pages/shoppingLists/CompletedListView.tsx @@ -1,7 +1,7 @@ import { Link } from "react-router"; import type { ShoppingList } from "./shoppingListTypes"; import "./CompletedListView.css"; -import "../../components/button/Button.css"; +import Button from "../../components/button/Button"; type CompletedListViewProps = { list: ShoppingList; @@ -167,23 +167,17 @@ function CompletedListView({ list }: CompletedListViewProps) { {/* Knappene kobles til backend senere (#63) */} - +

Lager en ny aktiv lapp med de samme varene. Prisene oppdateres til dagens priser.

- + - - {item.quantity} - - - - - - {item.unitPrice == null - ? "—" - : `${formatPrice(item.unitPrice * item.quantity)} KR`} - - - - + id={item.id} + name={item.name} + note={item.note} + quantity={item.quantity} + unitPrice={item.unitPrice} + checked={item.checked} + onToggle={() => toggleChecked(item.id)} + onDecrease={() => changeQuantity(item.id, -1)} + onIncrease={() => changeQuantity(item.id, 1)} + onRemove={() => removeItem(item.id)} + /> ))} @@ -280,24 +225,18 @@ function ShoppingListDetailPage() {

- + Finn flere varer - +

Lappen lagres automatisk. Prisene er estimat og kan endre seg i