summaryrefslogtreecommitdiff
path: root/gui/src/components/BudgetUpdatesTable/BudgetUpdatesTable.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'gui/src/components/BudgetUpdatesTable/BudgetUpdatesTable.tsx')
-rw-r--r--gui/src/components/BudgetUpdatesTable/BudgetUpdatesTable.tsx36
1 files changed, 0 insertions, 36 deletions
diff --git a/gui/src/components/BudgetUpdatesTable/BudgetUpdatesTable.tsx b/gui/src/components/BudgetUpdatesTable/BudgetUpdatesTable.tsx
deleted file mode 100644
index 479d69f..0000000
--- a/gui/src/components/BudgetUpdatesTable/BudgetUpdatesTable.tsx
+++ /dev/null
@@ -1,36 +0,0 @@
-import { BudgetUpdate } from '../../types/budgetUpdate';
-import './BudgetUpdatesTable.css';
-
-function BudgetUpdatesTable({ budgetUpdates }: Props) {
- return (
- <table>
- <thead>
- <tr>
- <td>Date</td>
- <td>Quantity</td>
- <td>Period</td>
- </tr>
- </thead>
-
- <tbody>
- { budgetUpdates.map(Row) }
- </tbody>
- </table>
- );
-}
-
-function Row(budgetUpdate: BudgetUpdate) {
- return (
- <tr>
- <td>{budgetUpdate.date.format("DD Mm YYYY")}</td>
- <td>{budgetUpdate.newQuantity.toString()}</td>
- <td>{budgetUpdate.newPeriod}</td>
- </tr>
- )
-}
-
-type Props = {
- budgetUpdates: BudgetUpdate[];
-}
-
-export { BudgetUpdatesTable };