Dashboard: Add bank account logo to the account card (#6)

<img width="1122" height="194" alt="image"
src="https://github.com/user-attachments/assets/5c2c63c1-a46e-4330-a9c4-5ea296a7cee2"
/>
This commit is contained in:
Víctor Falcón 2025-12-03 09:38:17 +01:00 committed by GitHub
parent 5f149b4bae
commit 79180b1024
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 1 deletions

View File

@ -43,7 +43,9 @@ export function AccountBalanceCard({
return (
<Card>
<CardHeader className="flex flex-row items-center justify-between space-y-0 pb-2">
<CardTitle className="text-sm font-medium">
<CardTitle className="text-sm font-medium flex items-center">
{account.bank.logo && <img src={account.bank.logo} alt={account.bank.name} className="inline-block size-5 mr-2 rounded-full object-contain" />}
<EncryptedText
encryptedText={account.name}
iv={account.name_iv}