diff --git a/frontend/src/components/AccountBalanceHistoryGraph.tsx b/frontend/src/components/AccountBalanceHistoryGraph.tsx index 27e67868..4469cd38 100644 --- a/frontend/src/components/AccountBalanceHistoryGraph.tsx +++ b/frontend/src/components/AccountBalanceHistoryGraph.tsx @@ -81,10 +81,12 @@ export function AccountBalanceHistoryGraph(props: Props) { > - + } /> {series.map((it) => ( - + ))} diff --git a/frontend/src/components/AccountLine.tsx b/frontend/src/components/AccountLine.tsx index afa1ca04..35769155 100644 --- a/frontend/src/components/AccountLine.tsx +++ b/frontend/src/components/AccountLine.tsx @@ -39,12 +39,12 @@ export default function AccountLine({ data, spacing }: Props) {
{hasChildren ? ( isShow ? ( - setCollapse(!isShow)} className="h-5 w-5 cursor-pointer" /> + setCollapse(!isShow)} className="h-4 w-4 cursor-pointer" /> ) : ( - setCollapse(!isShow)} className="h-5 w-5 cursor-pointer" /> + setCollapse(!isShow)} className="h-4 w-4 cursor-pointer" /> ) ) : ( -
+
)}
@@ -62,7 +62,7 @@ export default function AccountLine({ data, spacing }: Props) { -
+
@@ -83,7 +83,7 @@ export default function AccountLine({ data, spacing }: Props) { ) : ( -
+
)} @@ -93,7 +93,8 @@ export default function AccountLine({ data, spacing }: Props) { {isShow && Object.keys(data.children) .sort() - .map((child) => )} + .map((child) => )} ); } diff --git a/frontend/src/components/Amount.tsx b/frontend/src/components/Amount.tsx index 43cdae05..cb97b520 100644 --- a/frontend/src/components/Amount.tsx +++ b/frontend/src/components/Amount.tsx @@ -34,10 +34,12 @@ export default function Amount({ amount, currency, negative, mask, className }: const displayedValue = value.abs().toFormat(commodity?.precision ?? 2); const maskedValue = shouldMask ? displayedValue.replace(/\d/g, '*') : displayedValue; return ( - + {isNegative && -} {commodity?.prefix} + + {maskedValue} {commodity?.suffix && {commodity?.suffix}} diff --git a/frontend/src/components/ReportGraph.tsx b/frontend/src/components/ReportGraph.tsx index e41cdc3e..4b9d45f9 100644 --- a/frontend/src/components/ReportGraph.tsx +++ b/frontend/src/components/ReportGraph.tsx @@ -59,7 +59,8 @@ export default function ReportGraph(props: Props) { - + } /> @@ -67,7 +68,8 @@ export default function ReportGraph(props: Props) { - + diff --git a/frontend/src/components/journalLines/tableView/TableViewTransactionLine.tsx b/frontend/src/components/journalLines/tableView/TableViewTransactionLine.tsx index 85cbdbcb..3c2341f3 100644 --- a/frontend/src/components/journalLines/tableView/TableViewTransactionLine.tsx +++ b/frontend/src/components/journalLines/tableView/TableViewTransactionLine.tsx @@ -51,7 +51,8 @@ export default function TableViewTransactionLine({ data }: Props) { const summary = calculate(data); const hasDocuments = data.metas.some((meta) => meta.key === 'document'); return ( - + {time} @@ -63,13 +64,15 @@ export default function TableViewTransactionLine({ data }: Props) { {data.links && data.links.map((it) => ( - handleLinkClick(it)()}> + handleLinkClick(it)()}> ^{it} ))} {data.tags && data.tags.map((tag) => ( - handleTagClick(tag)()}> + handleTagClick(tag)()}> #{tag} ))} @@ -77,7 +80,7 @@ export default function TableViewTransactionLine({ data }: Props) {
-
+
{Array.from(summary.values()).map((each) => ( (undefined); const { data: account, error } = useSWR(`/api/accounts/${accountName}`, fetcher); - const { data: account_balance_data, error: account_balance_error } = useSWR(`/api/accounts/${accountName}/balances`, fetcher); + const { + data: account_balance_data, + error: account_balance_error, + } = useSWR(`/api/accounts/${accountName}/balances`, fetcher); const ledgerTitle = useAtomValue(titleAtom); useDocumentTitle(`${accountName} | Accounts - ${ledgerTitle}`); @@ -53,7 +56,8 @@ function SingleAccount() {
-

{account.alias ?? account.name}

+

{account.alias ?? account.name}

{account.status} @@ -63,16 +67,16 @@ function SingleAccount() {
-
+
{Object.keys(account.amount.detail).length > 1 &&

}
{Object.keys(account.amount.detail).length > 1 && ( - <> +
{Object.entries(account.amount.detail ?? {}).map(([key, value]) => ( - + ))} - +
)}
@@ -154,10 +158,12 @@ function SingleAccount() { render={(data: Document[]) => ( <> -
+
{data.map((document, idx) => ( - setLightboxSrc(path)} key={idx} uri={document.path} filename={document.path} /> + setLightboxSrc(path)} key={idx} uri={document.path} + filename={document.path} /> ))}
@@ -184,7 +190,8 @@ function SingleAccount() { {Object.entries(account?.amount.detail ?? {}).map(([commodity, amount]) => ( - + ))}