Skip to content

Commit

Permalink
fix header for account column
Browse files Browse the repository at this point in the history
  • Loading branch information
quinn committed Jan 28, 2024
1 parent 52ace74 commit 55198b2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/components/columns.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,7 @@ export const transactionColumns: ColumnDef<TransactionType>[] = [
{
id: 'icon',
accessorFn: (row) => row.logoUrl || row.categoryIconUrl,
header: () => {
return <span>Icon</span>
},
header: () => <span>Icon</span>,
cell: (ctx) => {
const value = ctx.getValue()
if (!value || typeof value !== 'string') return null
Expand Down Expand Up @@ -90,6 +88,7 @@ export const transactionColumns: ColumnDef<TransactionType>[] = [
},
{
id: 'account',
header: () => 'Account',
accessorFn: (row) => row.account?.name,
enableColumnFilter: true,
},
Expand Down

0 comments on commit 55198b2

Please sign in to comment.