From 70e22a7b906fe07b3fa3c7362931839064b5a6a3 Mon Sep 17 00:00:00 2001 From: Eric Musyoka Date: Wed, 6 Mar 2024 10:28:34 +0300 Subject: [PATCH] Remove unwanted changes on location unit list component --- .../src/components/LocationUnitList/Table.tsx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/packages/fhir-location-management/src/components/LocationUnitList/Table.tsx b/packages/fhir-location-management/src/components/LocationUnitList/Table.tsx index 05b43666d..473f6dab8 100644 --- a/packages/fhir-location-management/src/components/LocationUnitList/Table.tsx +++ b/packages/fhir-location-management/src/components/LocationUnitList/Table.tsx @@ -7,7 +7,6 @@ import { URL_LOCATION_UNIT_EDIT } from '../../constants'; import { Column, TableLayout } from '@opensrp/react-utils'; import { useTranslation } from '../../mls'; import { RbacCheck } from '@opensrp/rbac'; -import { TableLocale } from 'antd/es/table/interface'; export interface TableData { id: string; @@ -22,11 +21,10 @@ export interface TableData { export interface Props { data: TableData[]; onViewDetails?: (row: TableData) => void; - locale?: TableLocale; } const Table: React.FC = (props: Props) => { - const { onViewDetails, ...rest } = props; + const { onViewDetails } = props; const { t } = useTranslation(); const columns: Column[] = [ { @@ -95,7 +93,6 @@ const Table: React.FC = (props: Props) => { ), }} - {...rest} /> ); };