mirror of
https://github.com/acedanger/finance.git
synced 2025-12-05 22:50:12 -08:00
refactor: standardize import paths and clean up component imports
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
@@ -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() {
|
||||||
|
|||||||
Reference in New Issue
Block a user