mirror of
https://github.com/SigNoz/signoz.git
synced 2025-12-23 02:17:11 +00:00
refactor: some of the styles are removed and used native antd components (#1730)
This commit is contained in:
parent
b8c58a9812
commit
db105af89f
@ -1,6 +1,6 @@
|
|||||||
import { blue } from '@ant-design/colors';
|
import { blue } from '@ant-design/colors';
|
||||||
import { SearchOutlined } from '@ant-design/icons';
|
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 { ColumnsType, ColumnType } from 'antd/es/table';
|
||||||
import type { FilterConfirmProps } from 'antd/es/table/interface';
|
import type { FilterConfirmProps } from 'antd/es/table/interface';
|
||||||
import localStorageGet from 'api/browser/localstorage/get';
|
import localStorageGet from 'api/browser/localstorage/get';
|
||||||
@ -48,11 +48,8 @@ function Metrics(): JSX.Element {
|
|||||||
|
|
||||||
const filterDropdown = useCallback(
|
const filterDropdown = useCallback(
|
||||||
({ setSelectedKeys, selectedKeys, confirm }) => (
|
({ setSelectedKeys, selectedKeys, confirm }) => (
|
||||||
<div
|
<Card size="small">
|
||||||
style={{
|
<Space align="start" direction="vertical">
|
||||||
padding: 8,
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
<Input
|
<Input
|
||||||
placeholder="Search by service"
|
placeholder="Search by service"
|
||||||
value={selectedKeys[0]}
|
value={selectedKeys[0]}
|
||||||
@ -61,24 +58,17 @@ function Metrics(): JSX.Element {
|
|||||||
}
|
}
|
||||||
allowClear
|
allowClear
|
||||||
onPressEnter={(): void => handleSearch(confirm)}
|
onPressEnter={(): void => handleSearch(confirm)}
|
||||||
style={{
|
|
||||||
marginBottom: 8,
|
|
||||||
}}
|
|
||||||
/>
|
/>
|
||||||
<Space>
|
|
||||||
<Button
|
<Button
|
||||||
type="primary"
|
type="primary"
|
||||||
onClick={(): void => handleSearch(confirm)}
|
onClick={(): void => handleSearch(confirm)}
|
||||||
icon={<SearchOutlined />}
|
icon={<SearchOutlined />}
|
||||||
size="small"
|
size="small"
|
||||||
style={{
|
|
||||||
width: 90,
|
|
||||||
}}
|
|
||||||
>
|
>
|
||||||
Search
|
Search
|
||||||
</Button>
|
</Button>
|
||||||
</Space>
|
</Space>
|
||||||
</div>
|
</Card>
|
||||||
),
|
),
|
||||||
[],
|
[],
|
||||||
);
|
);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user