From 253137a6b80fc832aaf8e708ea7fefb95391c607 Mon Sep 17 00:00:00 2001 From: Vikrant Gupta Date: Thu, 25 Jan 2024 01:05:47 +0530 Subject: [PATCH] fix: center align the dashboard delete modal (#4429) --- .../ListOfDashboard/TableComponents/DeleteButton.styles.scss | 5 +++++ .../ListOfDashboard/TableComponents/DeleteButton.tsx | 3 +++ 2 files changed, 8 insertions(+) create mode 100644 frontend/src/container/ListOfDashboard/TableComponents/DeleteButton.styles.scss diff --git a/frontend/src/container/ListOfDashboard/TableComponents/DeleteButton.styles.scss b/frontend/src/container/ListOfDashboard/TableComponents/DeleteButton.styles.scss new file mode 100644 index 0000000000..afd7a87d22 --- /dev/null +++ b/frontend/src/container/ListOfDashboard/TableComponents/DeleteButton.styles.scss @@ -0,0 +1,5 @@ +.delete-modal { + .ant-modal-confirm-body { + align-items: center; + } +} diff --git a/frontend/src/container/ListOfDashboard/TableComponents/DeleteButton.tsx b/frontend/src/container/ListOfDashboard/TableComponents/DeleteButton.tsx index 810b99a278..2791d365b8 100644 --- a/frontend/src/container/ListOfDashboard/TableComponents/DeleteButton.tsx +++ b/frontend/src/container/ListOfDashboard/TableComponents/DeleteButton.tsx @@ -1,3 +1,5 @@ +import './DeleteButton.styles.scss'; + import { DeleteOutlined, ExclamationCircleOutlined } from '@ant-design/icons'; import { Modal, Tooltip, Typography } from 'antd'; import { REACT_QUERY_KEY } from 'constants/reactQueryKeys'; @@ -64,6 +66,7 @@ function DeleteButton({ okText: 'Delete', okButtonProps: { danger: true }, centered: true, + className: 'delete-modal', }); }, [modal, name, deleteDashboardMutation, notifications, t, queryClient]);