import { BudgetUpdate } from '../../types/budgetUpdate'; import './BudgetUpdatesTable.css'; function BudgetUpdatesTable({ budgetUpdates }: Props) { return ( { budgetUpdates.map(Row) }
Date Quantity Period
); } function Row(budgetUpdate: BudgetUpdate) { return ( {budgetUpdate.date.format("DD Mm YYYY")} {budgetUpdate.newQuantity.toString()} {budgetUpdate.newPeriod} ) } type Props = { budgetUpdates: BudgetUpdate[]; } export { BudgetUpdatesTable };