diff options
| author | Joe Carstairs <me@joeac.net> | 2024-10-22 07:46:43 +0100 |
|---|---|---|
| committer | Joe Carstairs <me@joeac.net> | 2024-10-22 07:46:43 +0100 |
| commit | 5824c353f978a5b9ab9696451ee3014c6a614ffc (patch) | |
| tree | bc39754ca417e84eb00b0aa9a1ae2330da0bf282 /gui/src/views/App.tsx | |
| parent | 7adaace61a4fe983eba5ded3aaaf624ce6fb9014 (diff) | |
Refactors importer to use core stuff
Diffstat (limited to 'gui/src/views/App.tsx')
| -rw-r--r-- | gui/src/views/App.tsx | 19 |
1 files changed, 19 insertions, 0 deletions
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 |
