From db105af89f86c735e59e580062ae3844f68f154f Mon Sep 17 00:00:00 2001 From: Palash Gupta Date: Mon, 21 Nov 2022 13:39:54 +0530 Subject: [PATCH] refactor: some of the styles are removed and used native antd components (#1730) --- frontend/src/container/MetricsTable/index.tsx | 36 +++++++------------ 1 file changed, 13 insertions(+), 23 deletions(-) diff --git a/frontend/src/container/MetricsTable/index.tsx b/frontend/src/container/MetricsTable/index.tsx index bfc97ba9e2..3042e94d1a 100644 --- a/frontend/src/container/MetricsTable/index.tsx +++ b/frontend/src/container/MetricsTable/index.tsx @@ -1,6 +1,6 @@ import { blue } from '@ant-design/colors'; import { SearchOutlined } from '@ant-design/icons'; -import { Button, Input, Space, Table } from 'antd'; +import { Button, Card, Input, Space, Table } from 'antd'; import type { ColumnsType, ColumnType } from 'antd/es/table'; import type { FilterConfirmProps } from 'antd/es/table/interface'; import localStorageGet from 'api/browser/localstorage/get'; @@ -48,37 +48,27 @@ function Metrics(): JSX.Element { const filterDropdown = useCallback( ({ setSelectedKeys, selectedKeys, confirm }) => ( -
- - setSelectedKeys(e.target.value ? [e.target.value] : []) - } - allowClear - onPressEnter={(): void => handleSearch(confirm)} - style={{ - marginBottom: 8, - }} - /> - + + + + setSelectedKeys(e.target.value ? [e.target.value] : []) + } + allowClear + onPressEnter={(): void => handleSearch(confirm)} + /> -
+ ), [], );