refactor: standardize import paths and clean up component imports

This commit is contained in:
Peter Wood
2025-05-17 21:53:10 -04:00
parent 9382e41a55
commit c9ed7d4d2c
3 changed files with 5 additions and 5 deletions

View File

@@ -1,7 +1,7 @@
--- ---
import type { Account } from '@types'; import type { Account } from "@types";
// biome-ignore lint/correctness/noUnusedImports: formatCurrency is used in the template // biome-ignore lint/correctness/noUnusedImports: formatCurrency is used in the template
import { formatCurrency } from '@utils/formatters'; import { formatCurrency } from "@utils";
interface Props { interface Props {
account: Account; account: Account;

View File

@@ -1,6 +1,6 @@
--- ---
import type { Account, Transaction } from "@types"; import type { Account, Transaction } from "@types";
import TransactionTable from "./TransactionTable.astro"; import TransactionTable from "./TransactionTable";
interface Props { interface Props {
account: Account; account: Account;
@@ -18,5 +18,5 @@ const { account, transactions } = Astro.props;
> >
</h1> </h1>
</header> </header>
<TransactionTable client:load transactions={transactions} /> <TransactionTable client:load />
</main> </main>

View File

@@ -8,7 +8,7 @@ import {
triggerRefresh, triggerRefresh,
} from '@stores/transactionStore'; } from '@stores/transactionStore';
import type { Transaction } from '@types'; import type { Transaction } from '@types';
import { formatCurrency, formatDate } from '@utils/formatters'; import { formatCurrency, formatDate } from '@utils';
import { useCallback, useEffect, useState } from 'react'; import { useCallback, useEffect, useState } from 'react';
export default function TransactionTable() { export default function TransactionTable() {