From a3f61e494c5a29b2993a994036da6815267a39d0 Mon Sep 17 00:00:00 2001 From: Sudeep MP Date: Wed, 11 Sep 2024 21:49:09 +0100 Subject: [PATCH] refactor(ListAlert): update styles and button layout --- .../container/ListAlertRules/ListAlert.tsx | 29 +++++++++---------- .../src/container/ListAlertRules/styles.ts | 6 ---- 2 files changed, 14 insertions(+), 21 deletions(-) diff --git a/frontend/src/container/ListAlertRules/ListAlert.tsx b/frontend/src/container/ListAlertRules/ListAlert.tsx index f446d55f90..424d98ddd9 100644 --- a/frontend/src/container/ListAlertRules/ListAlert.tsx +++ b/frontend/src/container/ListAlertRules/ListAlert.tsx @@ -1,6 +1,6 @@ /* eslint-disable react/display-name */ import { PlusOutlined } from '@ant-design/icons'; -import { Input, Typography } from 'antd'; +import { Flex, Input, Typography } from 'antd'; import type { ColumnsType } from 'antd/es/table/interface'; import saveAlertApi from 'api/alerts/save'; import logEvent from 'api/common/logEvent'; @@ -34,12 +34,7 @@ import { GettableAlert } from 'types/api/alerts/get'; import AppReducer from 'types/reducer/app'; import DeleteAlert from './DeleteAlert'; -import { - Button, - ButtonContainer, - ColumnButton, - SearchContainer, -} from './styles'; +import { Button, ColumnButton, SearchContainer } from './styles'; import Status from './TableComponents/Status'; import ToggleAlertState from './ToggleAlertState'; import { alertActionLogEvent, filterAlerts } from './utils'; @@ -373,21 +368,25 @@ function ListAlert({ allAlertRules, refetch }: ListAlertProps): JSX.Element { onChange={handleSearch} defaultValue={searchString} /> - + + {addNewAlert && ( + + )} - - {addNewAlert && ( - - )} - +