diff --git a/src/components/CreditLinesTable.tsx b/src/components/CreditLinesTable.tsx index eb0bf4c..b70b351 100644 --- a/src/components/CreditLinesTable.tsx +++ b/src/components/CreditLinesTable.tsx @@ -5,7 +5,7 @@ import Text from 'src/stories/text/Text'; import { ICreditProduct } from '../schemas/application'; import Button from '../stories/button/Button'; import { formatCurrency } from '../util'; -import { DataTableCell, DataTableHeadCell, TransparentDataTableCell } from './DataTable'; +import { DataTableCell, DataTableHeadCell, DataTableHeadLabel, TransparentDataTableCell } from './DataTable'; import DataWithDetail from './DataWithDetail'; export interface CreditLinesTableProps { @@ -34,7 +34,10 @@ export function CreditLinesTable({ rows, currency, isLoading, selectOption }: Cr {rows.map((row) => ( - lender-logo + {row.lender.logo_filename + ? lender-logo + : + } ))} diff --git a/src/components/LoansTable.tsx b/src/components/LoansTable.tsx index cf14e55..89139c8 100644 --- a/src/components/LoansTable.tsx +++ b/src/components/LoansTable.tsx @@ -5,7 +5,7 @@ import Text from 'src/stories/text/Text'; import { ICreditProduct } from '../schemas/application'; import Button from '../stories/button/Button'; import { formatCurrency } from '../util'; -import { DataTableCell, DataTableHeadCell, TransparentDataTableCell } from './DataTable'; +import { DataTableCell, DataTableHeadCell, DataTableHeadLabel, TransparentDataTableCell } from './DataTable'; import DataWithDetail from './DataWithDetail'; export interface LoansTableProps { @@ -35,7 +35,11 @@ export function LoansTable({ rows, amountRequested, currency, isLoading, selectO {rows.map((row) => ( - lender-logo + + {row.lender.logo_filename + ? lender-logo + : + } ))}