From 8a30bcbdf9264d235bf93da3df8e170cfde53d02 Mon Sep 17 00:00:00 2001
From: Joe Carstairs <me@joeac.net>
Date: Thu, 12 Dec 2024 08:26:53 +0000
Subject: Removes web GUI

---
 .../budgetUpdatesTable/BudgetUpdatesTableView.tsx  | 32 ----------------------
 1 file changed, 32 deletions(-)
 delete mode 100644 gui/src/views/budgetUpdatesTable/BudgetUpdatesTableView.tsx

(limited to 'gui/src/views/budgetUpdatesTable/BudgetUpdatesTableView.tsx')

diff --git a/gui/src/views/budgetUpdatesTable/BudgetUpdatesTableView.tsx b/gui/src/views/budgetUpdatesTable/BudgetUpdatesTableView.tsx
deleted file mode 100644
index 465ea92..0000000
--- a/gui/src/views/budgetUpdatesTable/BudgetUpdatesTableView.tsx
+++ /dev/null
@@ -1,32 +0,0 @@
-import { createSignal, Match, Resource, Switch } from 'solid-js';
-import { BudgetUpdate } from '../../types/budgetUpdate';
-import { BudgetUpdatesTable } from '../../components/BudgetUpdatesTable/BudgetUpdatesTable';
-import { Category } from '../../types/category';
-import './BudgetUpdatesTableView.css';
-
-export function BudgetUpdatesTableView({ budgetUpdates, categories }: Props) {
-  const [newCategoryId, setCategoryId] = createSignal<number>();
-
-  const filteredAndSortedBudgetUpdates: BudgetUpdate[] = budgetUpdates()
-    ?.filter((bu) => bu.categoryId === newCategoryId())
-    ?.sort((bu1, bu2) => bu2.date.diff(bu1.date))
-    ?? [];
-
-  return (
-    <div>
-      <form action="none">
-        <label for="category">Category</label>
-        <select id="category" onChange={(e) => setCategoryId(Number(e.target.value))}>
-          {(categories() ?? []).map((c) =>
-            <option value={c.id}>{c.name}</option>)}
-        </select>
-      </form>
-      <BudgetUpdatesTable budgetUpdates={filteredAndSortedBudgetUpdates as BudgetUpdate[]} />
-    </div>
-  );
-}
-
-type Props = {
-  budgetUpdates: Resource<BudgetUpdate[] | null>;
-  categories: Resource<Category[] | null>;
-}
-- 
cgit v1.2.3

