Skip to content

Commit

Permalink
fix: not use message component when deleting project (#7551)
Browse files Browse the repository at this point in the history
  • Loading branch information
mintsweet committed May 31, 2024
1 parent 35f814e commit 6c73930
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions config-ui/src/routes/project/detail/settings-panel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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>
Expand Down

0 comments on commit 6c73930

Please sign in to comment.