diff --git a/biome.json b/biome.json index 491fb0e..434810c 100644 --- a/biome.json +++ b/biome.json @@ -39,7 +39,7 @@ } }, "files": { - "ignore": ["dist", "node_modules", ".astro", "coverage"] + "ignore": ["dist", "node_modules", "**/*.astro", "coverage"] }, "vcs": { "enabled": true, diff --git a/src/components/TransactionTable.astro b/src/components/TransactionTable.astro index 5f516f4..3060153 100644 --- a/src/components/TransactionTable.astro +++ b/src/components/TransactionTable.astro @@ -1,15 +1,16 @@ --- -import type { Transaction } from '@types'; +import type { Transaction } from "@types"; +import { formatDate, formatCurrency } from "@utils"; interface Props { - transactions: Transaction[]; + transactions: Transaction[]; } const { transactions } = Astro.props; // Sort transactions by date descending for display const sortedTransactions = [...transactions].sort( - (a, b) => new Date(b.date).getTime() - new Date(a.date).getTime(), + (a, b) => new Date(b.date).getTime() - new Date(a.date).getTime(), ); // TODO: UI/UX Improvements