diff --git a/web/src/components/accounts/AccountsList.tsx b/web/src/components/accounts/AccountsList.tsx index dbac757..c75fb9d 100644 --- a/web/src/components/accounts/AccountsList.tsx +++ b/web/src/components/accounts/AccountsList.tsx @@ -27,44 +27,46 @@ const AccountsList: Component<{ const defaultAccountId = () => props.currentUser?.currentUser?.defaultAccount?.id return ( - - {(account) => ( -
-
-

{account.name}

-

{account.currency.code}

+
+ + {(account) => ( +
+
+

{account.name}

+

{account.currency.code}

+
+ + + + +
- - - - - -
- )} - + )} + +
) } diff --git a/web/src/components/categories/CategoriesList.tsx b/web/src/components/categories/CategoriesList.tsx index 61a5fc7..db1b34b 100644 --- a/web/src/components/categories/CategoriesList.tsx +++ b/web/src/components/categories/CategoriesList.tsx @@ -85,24 +85,26 @@ export const CategoriesList: Component<{ data: CategoriesQuery }> = (props) => { }) return ( - - - - - {(category) => } - - - - - - - - - +
+ + + + + {(category) => } + + + + + + + + + +
) } diff --git a/web/src/components/currencies/Currencies.tsx b/web/src/components/currencies/Currencies.tsx index 50248e9..a90a657 100644 --- a/web/src/components/currencies/Currencies.tsx +++ b/web/src/components/currencies/Currencies.tsx @@ -49,29 +49,33 @@ export const CurrenciesList: Component<{
No favourite currencies
- - {(currency) => ( - unfavouriteCurrency({ id: currency.id })} - onSetDefault={() => setDefaultCurrency({ id: currency.id })} - /> - )} - +
+ + {(currency) => ( + unfavouriteCurrency({ id: currency.id })} + onSetDefault={() => setDefaultCurrency({ id: currency.id })} + /> + )} + +
- - {(currency) => ( - favouriteCurrency({ id: currency.id })} - onSetDefault={() => setDefaultCurrency({ id: currency.id })} - /> - )} - +
+ + {(currency) => ( + favouriteCurrency({ id: currency.id })} + onSetDefault={() => setDefaultCurrency({ id: currency.id })} + /> + )} + +
) } diff --git a/web/src/components/transactions/TransactionItem.tsx b/web/src/components/transactions/TransactionItem.tsx index 1880d3a..7c3d8f2 100644 --- a/web/src/components/transactions/TransactionItem.tsx +++ b/web/src/components/transactions/TransactionItem.tsx @@ -39,7 +39,7 @@ const TransactionItem: Component<{ return ( <>
(
- - {(transaction) => } - +
+ + {(transaction) => } + +
) }} diff --git a/web/src/components/user/FavouriteCurrencies.tsx b/web/src/components/user/FavouriteCurrencies.tsx index eaae0c6..51dfae3 100644 --- a/web/src/components/user/FavouriteCurrencies.tsx +++ b/web/src/components/user/FavouriteCurrencies.tsx @@ -5,7 +5,7 @@ import { CurrentUserQuery } from "../../graphql-types" import { useSetDefaultCurrency } from "../../graphql/mutations/setDefaultCurrency" import { Button } from "../base/Button" -export const favouriteCurrencies: Component<{ +export const FavouriteCurrencies: Component<{ data: CurrentUserQuery }> = (props) => { const currentUser = () => props.data.currentUser! @@ -15,13 +15,13 @@ export const favouriteCurrencies: Component<{ }) return ( -
+
No favourite currencies
{(currency) => ( -
+
{currency.code} ({currency.name}) -
+
Password
{(credential) => ( -
+
{credential.device} (created on {credential.createdAt})