Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
joel-jeremy committed Nov 14, 2024
1 parent 8149817 commit 359cfe5
Showing 1 changed file with 21 additions and 18 deletions.
39 changes: 21 additions & 18 deletions packages/desktop-client/src/components/mobile/accounts/Accounts.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -112,23 +112,26 @@ function AccountCard({
alignItems: 'center',
}}
>
{/* TODO: Should bankId be part of the AccountEntity type? */ 'bankId' in account && account.bankId ? (
<View
style={{
backgroundColor: pending
? theme.sidebarItemBackgroundPending
: failed
? theme.sidebarItemBackgroundFailed
: theme.sidebarItemBackgroundPositive,
marginRight: '8px',
width: 8,
flexShrink: 0,
height: 8,
borderRadius: 8,
opacity: connected ? 1 : 0,
}}
/>
) : null}
{
/* TODO: Should bankId be part of the AccountEntity type? */
'bankId' in account && account.bankId ? (
<View
style={{
backgroundColor: pending
? theme.sidebarItemBackgroundPending
: failed
? theme.sidebarItemBackgroundFailed
: theme.sidebarItemBackgroundPositive,
marginRight: '8px',
width: 8,
flexShrink: 0,
height: 8,
borderRadius: 8,
opacity: connected ? 1 : 0,
}}
/>
) : null
}
<TextOneLine
style={{
...styles.text,
Expand All @@ -145,7 +148,7 @@ function AccountCard({
</View>
<CellValue binding={getBalanceQuery(account)} type="financial">
{props => (
<CellValueText
<CellValueText<'account', 'balance'>
{...props}
style={{
fontSize: 16,
Expand Down

0 comments on commit 359cfe5

Please sign in to comment.