You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@devlake.apache.org by mi...@apache.org on 2024/05/31 03:23:45 UTC
(incubator-devlake) 01/01: fix: not use message component when deleting project
This is an automated email from the ASF dual-hosted git repository.
mintsweet pushed a commit to branch fix-project-delete-message
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git
commit 846f738eded23952158cd54d258d435a852a8066
Author: mintsweet <0x...@gmail.com>
AuthorDate: Fri May 31 15:23:29 2024 +1200
fix: not use message component when deleting project
---
config-ui/src/routes/project/detail/settings-panel.tsx | 9 ++-------
1 file changed, 2 insertions(+), 7 deletions(-)
diff --git a/config-ui/src/routes/project/detail/settings-panel.tsx b/config-ui/src/routes/project/detail/settings-panel.tsx
index d85543e04..2de91701d 100644
--- a/config-ui/src/routes/project/detail/settings-panel.tsx
+++ b/config-ui/src/routes/project/detail/settings-panel.tsx
@@ -18,11 +18,10 @@
import { useEffect, useState } from 'react';
import { useNavigate } from 'react-router-dom';
-import { WarningOutlined } from '@ant-design/icons';
import { Flex, Space, Card, Modal, Input, Checkbox, Button, message } from 'antd';
import API from '@/api';
-import { Block, HelpTooltip } from '@/components';
+import { Block, HelpTooltip, Message } from '@/components';
import { PATHS } from '@/config';
import { IProject } from '@/types';
import { operator } from '@/utils';
@@ -200,11 +199,7 @@ export const SettingsPanel = ({ project, onRefresh }: Props) => {
onOk={handleDelete}
>
<S.DialogBody>
- <WarningOutlined />
- <span>
- This operation cannot be undone. Deleting a Data Connection will delete all data that have been collected in
- this Connection.
- </span>
+ <Message content="This operation cannot be undone. Deleting a Data Connection will delete all data that have been collected in this Connection." />
</S.DialogBody>
</Modal>
</Flex>