From cca49f0361b43002644a38408045bd17b9ea35eb Mon Sep 17 00:00:00 2001 From: Shekar Siri Date: Thu, 4 Jul 2024 10:57:29 +0200 Subject: [PATCH] change(ui): dashboard inputs - remove last border from table cards --- .../components/Dashboard/Widgets/CardSessionsByList.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/app/components/Dashboard/Widgets/CardSessionsByList.tsx b/frontend/app/components/Dashboard/Widgets/CardSessionsByList.tsx index 135c5cb76..ace2074ae 100644 --- a/frontend/app/components/Dashboard/Widgets/CardSessionsByList.tsx +++ b/frontend/app/components/Dashboard/Widgets/CardSessionsByList.tsx @@ -13,16 +13,16 @@ function CardSessionsByList({ list, selected, onClickHandler = () => null }: Pro ( + renderItem={(row: any, index: number) => ( onClickHandler(e, row)} // Remove onClick handler to disable click interaction + onClick={(e) => onClickHandler(e, row)} style={{ - borderBottom: '1px dotted rgba(0, 0, 0, 0.05)', + borderBottom: index === list.length - 1 ? 'none' : '1px dotted rgba(0, 0, 0, 0.05)', padding: '4px 10px', lineHeight: '1px' }} - className={cn('rounded', selected === row.name ? 'bg-active-blue' : '')} // Remove hover:bg-active-blue and cursor-pointer + className={cn('rounded', selected === row.name ? 'bg-active-blue' : '')} >