mirror of
https://github.com/acedanger/finance.git
synced 2025-12-06 07:00:13 -08:00
refactor: Reorganize imports and improve code consistency across components and API routes
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
---
|
||||
import { formatCurrency, formatDate } from '../utils';
|
||||
import type { Transaction } from '../types';
|
||||
import { formatCurrency, formatDate } from '../utils';
|
||||
|
||||
interface Props {
|
||||
transactions: Transaction[];
|
||||
@@ -10,7 +10,7 @@ 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