Skip to content

Commit

Permalink
Remove unwanted changes on location unit list component
Browse files Browse the repository at this point in the history
  • Loading branch information
ciremusyoka committed Mar 6, 2024
1 parent 17c8786 commit 70e22a7
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -22,11 +21,10 @@ export interface TableData {
export interface Props {
data: TableData[];
onViewDetails?: (row: TableData) => void;
locale?: TableLocale;
}

const Table: React.FC<Props> = (props: Props) => {
const { onViewDetails, ...rest } = props;
const { onViewDetails } = props;
const { t } = useTranslation();
const columns: Column<TableData>[] = [
{
Expand Down Expand Up @@ -95,7 +93,6 @@ const Table: React.FC<Props> = (props: Props) => {
</>
),
}}
{...rest}
/>
);
};
Expand Down

0 comments on commit 70e22a7

Please sign in to comment.