diff options
| author | Joe Carstairs <me@joeac.net> | 2024-12-12 08:26:53 +0000 |
|---|---|---|
| committer | Joe Carstairs <me@joeac.net> | 2024-12-12 08:26:53 +0000 |
| commit | 8a30bcbdf9264d235bf93da3df8e170cfde53d02 (patch) | |
| tree | 5f9b6fe956c72b89a89cc936ab86ec1bffc271f5 /gui/src/components/BudgetUpdatesTable | |
| parent | 51711fb42a44b452cdf1b4fd6a716d0251f23dda (diff) | |
Removes web GUI
Diffstat (limited to 'gui/src/components/BudgetUpdatesTable')
| -rw-r--r-- | gui/src/components/BudgetUpdatesTable/BudgetUpdatesTable.css | 1 | ||||
| -rw-r--r-- | gui/src/components/BudgetUpdatesTable/BudgetUpdatesTable.tsx | 36 |
2 files changed, 0 insertions, 37 deletions
diff --git a/gui/src/components/BudgetUpdatesTable/BudgetUpdatesTable.css b/gui/src/components/BudgetUpdatesTable/BudgetUpdatesTable.css deleted file mode 100644 index 8b13789..0000000 --- a/gui/src/components/BudgetUpdatesTable/BudgetUpdatesTable.css +++ /dev/null @@ -1 +0,0 @@ - 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 }; |
