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.
-
+
Legg varer på aktiv lapp
-
+
SLETT LISTA
diff --git a/frontend/src/pages/shoppingLists/ShoppingListDetailPage.css b/frontend/src/pages/shoppingLists/ShoppingListDetailPage.css
index 38f742e..8e5e239 100644
--- a/frontend/src/pages/shoppingLists/ShoppingListDetailPage.css
+++ b/frontend/src/pages/shoppingLists/ShoppingListDetailPage.css
@@ -162,20 +162,6 @@
list-style: none;
}
-/* Hele navnefeltet er klikkbart for å krysse av */
-.notepad__list .shopping-list-row__name {
- cursor: pointer;
-}
-
-.notepad__list .shopping-list-row__price {
- text-transform: uppercase;
-}
-
-.notepad__list .quantity-stepper__button:disabled {
- opacity: 0.4;
- cursor: default;
-}
-
/* «Legg til vare» nederst på lappen */
.notepad__add {
display: flex;
diff --git a/frontend/src/pages/shoppingLists/ShoppingListDetailPage.tsx b/frontend/src/pages/shoppingLists/ShoppingListDetailPage.tsx
index 4c69a37..1e6cbe4 100644
--- a/frontend/src/pages/shoppingLists/ShoppingListDetailPage.tsx
+++ b/frontend/src/pages/shoppingLists/ShoppingListDetailPage.tsx
@@ -1,13 +1,11 @@
import { useState } from "react";
-import type { FormEvent } from "react";
+import type { SubmitEvent } from "react";
import { Link, useParams } from "react-router";
import { mockLists } from "./shoppingListMockData";
import type { ShoppingListItem } from "./shoppingListTypes";
import "./ShoppingListDetailPage.css";
-import "../../components/shoppingListRow/ShoppingListRow.css";
-import "../../components/checkbox/Checkbox.css";
-import "../../components/quantityStepper/QuantityStepper.css";
-import "../../components/button/Button.css";
+import Button from "../../components/button/Button";
+import ShoppingListRow from "../../components/shoppingListRow/ShoppingListRow";
import CompletedListView from "./CompletedListView";
type SortOrder = "added" | "alphabetical";
@@ -68,7 +66,7 @@ function ShoppingListDetailPage() {
setItems((current) => current.filter((item) => item.id !== itemId));
}
- function addItem(event: FormEvent) {
+ function addItem(event: SubmitEvent) {
event.preventDefault();
const name = newItem.trim();
if (!name) return;
@@ -156,72 +154,19 @@ function ShoppingListDetailPage() {
@@ -280,24 +225,18 @@ function ShoppingListDetailPage() {
-
+
Start handletur
-
+
Finn flere varer
-
+
Del lappen
-
+
Lappen lagres automatisk. Prisene er estimat og kan endre seg i