Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions frontend/src/pages/shoppingLists/PreviousListsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,7 @@ import type { ShoppingList } from "../../types/shoppingList";
import "./PreviousListsPage.css";
import "./ShoppingListsPage.css";
import { mockLists } from "./shoppingListMockData";

const LIST_TABS = [
{ value: "active", label: "Aktive", to: "/lists" },
{ value: "previous", label: "Tidligere", to: "/lists/history" },
];
import { LIST_TABS } from "./shoppingListTabs";



Expand Down
5 changes: 1 addition & 4 deletions frontend/src/pages/shoppingLists/ShoppingListsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,12 @@ import SegmentedControl from "../../components/segmentedControl/SegmentedControl
import ShoppingListCard from "./ShoppingListCard";
import { mockLists } from "./shoppingListMockData";
import "./ShoppingListsPage.css";
import { LIST_TABS } from "./shoppingListTabs";

type SortOrder = "newest" | "oldest" | "name-asc" | "name-desc";

const SORT_STORAGE_KEY = "active-lists-sort-order";

const LIST_TABS = [
{ value: "active", label: "Aktive", to: "/lists" },
{ value: "previous", label: "Tidligere", to: "/lists/history" },
];

function loadSortOrder(): SortOrder {
try {
Expand Down
4 changes: 4 additions & 0 deletions frontend/src/pages/shoppingLists/shoppingListTabs.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
export const LIST_TABS = [
{ value: "active", label: "Aktive", to: "/lists" },
{ value: "previous", label: "Tidligere", to: "/lists/history" },
];