blob: 80eb0513c8c1e9712e39b3e992af711d94dd5dc8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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
|