fix: update ignore pattern in biome.json and format imports in TransactionTable.astro

This commit is contained in:
GitHub Copilot
2025-05-07 17:15:47 -04:00
parent d8678e68ed
commit 6733188b20
2 changed files with 5 additions and 4 deletions

View File

@@ -39,7 +39,7 @@
} }
}, },
"files": { "files": {
"ignore": ["dist", "node_modules", ".astro", "coverage"] "ignore": ["dist", "node_modules", "**/*.astro", "coverage"]
}, },
"vcs": { "vcs": {
"enabled": true, "enabled": true,

View File

@@ -1,15 +1,16 @@
--- ---
import type { Transaction } from '@types'; import type { Transaction } from "@types";
import { formatDate, formatCurrency } from "@utils";
interface Props { interface Props {
transactions: Transaction[]; transactions: Transaction[];
} }
const { transactions } = Astro.props; const { transactions } = Astro.props;
// Sort transactions by date descending for display // Sort transactions by date descending for display
const sortedTransactions = [...transactions].sort( 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 // TODO: UI/UX Improvements