From 139567ebc88b5d0d2cca984e6c98db162420c344 Mon Sep 17 00:00:00 2001 From: Radu Mojic Date: Tue, 20 Feb 2024 13:14:12 +0200 Subject: [PATCH] temporarily remove expand row functionality --- .../NodesTableBody/Rows/AuctionListRow.tsx | 41 +------------------ 1 file changed, 2 insertions(+), 39 deletions(-) diff --git a/src/components/NodesTable/components/NodesTableBody/Rows/AuctionListRow.tsx b/src/components/NodesTable/components/NodesTableBody/Rows/AuctionListRow.tsx index a06d02531..0da0111f1 100644 --- a/src/components/NodesTable/components/NodesTableBody/Rows/AuctionListRow.tsx +++ b/src/components/NodesTable/components/NodesTableBody/Rows/AuctionListRow.tsx @@ -2,7 +2,6 @@ import { useGetSort } from 'hooks'; import { NodeType, SortOrderEnum, WithClassnameType } from 'types'; import { AuctionListBaseRow } from './AuctionListBaseRow'; -import { AuctionListExpandRow } from './AuctionListExpandRow'; import { AuctionListTresholdRow } from './AuctionListTresholdRow'; export interface AuctionListRowUIType extends WithClassnameType { @@ -13,53 +12,17 @@ export interface AuctionListRowUIType extends WithClassnameType { export const AuctionListRow = ({ nodeData, - showTresholdRow, - expandRowDetails + showTresholdRow }: AuctionListRowUIType) => { const { sort, order } = useGetSort(); const isSortDesc = sort === 'auctionPosition' && order === SortOrderEnum.desc; - const hasExpand = - expandRowDetails?.qualifiedExpandPosition || - expandRowDetails?.dangerZoneExpandPosition || - expandRowDetails?.notQualifiedExpandPosition; - return ( <> {isSortDesc && showTresholdRow && ( )} - {expandRowDetails?.qualifiedExpandPosition && ( - - )} - {expandRowDetails?.dangerZoneExpandPosition && ( - - )} - {expandRowDetails?.notQualifiedExpandPosition && ( - - )} - {!hasExpand && } + {!isSortDesc && showTresholdRow && ( )}