From 5824c353f978a5b9ab9696451ee3014c6a614ffc Mon Sep 17 00:00:00 2001
From: Joe Carstairs <me@joeac.net>
Date: Tue, 22 Oct 2024 07:46:43 +0100
Subject: Refactors importer to use core stuff

---
 gui/src/views/App.tsx | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
 create mode 100644 gui/src/views/App.tsx

(limited to 'gui/src/views/App.tsx')

diff --git a/gui/src/views/App.tsx b/gui/src/views/App.tsx
new file mode 100644
index 0000000..80eb051
--- /dev/null
+++ b/gui/src/views/App.tsx
@@ -0,0 +1,19 @@
+import { createResource } from 'solid-js';
+import './App.css'
+import { getAllBudgetUpdates, getAllCategories } from '../ajax/backend';
+import { HistogramView } from './histogram/HistogramView';
+import { BudgetUpdatesTableView } from './budgetUpdatesTable/BudgetUpdatesTableView';
+
+function App() {
+  const [categories] = createResource(getAllCategories);
+  const [budgetUpdates] = createResource(getAllBudgetUpdates);
+
+  return (
+    <div>
+      <HistogramView categories={categories} />
+      <BudgetUpdatesTableView budgetUpdates={budgetUpdates} categories={categories} />
+    </div>
+  );
+}
+
+export default App
-- 
cgit v1.2.3

