mirror of
https://github.com/acedanger/finance.git
synced 2025-12-06 07:00:13 -08:00
fix: update ignore pattern in biome.json and format imports in TransactionTable.astro
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user