mirror of
https://github.com/acedanger/finance.git
synced 2025-12-05 22:50:12 -08:00
feat: enhance module resolution and improve API error handling
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user