From 2e20edf3e784cccb98fd3a196cc68f51ba35bf31 Mon Sep 17 00:00:00 2001 From: Matthew Alex Date: Thu, 22 Aug 2024 11:54:23 +0100 Subject: [PATCH] style: move logo into company column for event table --- app/events/EventTable.tsx | 16 ++++++---------- app/events/page.tsx | 2 +- 2 files changed, 7 insertions(+), 11 deletions(-) diff --git a/app/events/EventTable.tsx b/app/events/EventTable.tsx index 5438f505..ac3d1298 100644 --- a/app/events/EventTable.tsx +++ b/app/events/EventTable.tsx @@ -39,19 +39,13 @@ const EventTable = ({ const columnDefsMap = useMemo(() => { const columnDefsMap_: Partial>> = { "company.name": { - cell: info => {info.getValue()}, - header: "Company", - id: "company.name", - sortingFn: "alphanumeric", - }, - "company.logo": { cell: info => ( - + {info.getValue() && ( profile teaser )} + {info.getValue()} ), - header: "", - enableSorting: false, + header: "Company", + id: "company.name", + sortingFn: "alphanumeric", }, title: { cell: info => {info.getValue()}, diff --git a/app/events/page.tsx b/app/events/page.tsx index 793e4961..27c7fb49 100644 --- a/app/events/page.tsx +++ b/app/events/page.tsx @@ -20,7 +20,7 @@ const EventsPage = async () => { Events