feat: enhance module resolution and improve API error handling

This commit is contained in:
Peter Wood
2025-05-17 21:45:43 -04:00
parent cf99168f8f
commit 9382e41a55
8 changed files with 96 additions and 51 deletions

View File

@@ -1,19 +1,22 @@
---
import type { Account } from '@types';
import type { Account, Transaction } from "@types";
import TransactionTable from "./TransactionTable.astro";
interface Props {
account: Account;
transactions: Transaction[];
}
const { account } = Astro.props;
const { account, transactions } = Astro.props;
---
<main class="main-content">
<header class="main-header">
<h1>
Transactions for <span id="current-account-name"
>{account.name} (***{account.accountNumber.slice(-3)})</span>
>{account.name} (***{account.accountNumber.slice(-3)})</span
>
</h1>
</header>
<TransactionTable client:load />
<TransactionTable client:load transactions={transactions} />
</main>