-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed auto complete pr coments (#4072)
- Loading branch information
1 parent
8002fd8
commit a0a2e02
Showing
7 changed files
with
160 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
...web-react/src/app/entity/shared/tabs/Documentation/components/DiscardDescriptionModal.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import React from 'react'; | ||
import { Modal, Button } from 'antd'; | ||
|
||
type Props = { | ||
cancelModalVisible?: boolean; | ||
onDiscard?: () => void; | ||
onCancel?: () => void; | ||
}; | ||
|
||
export const DiscardDescriptionModal = ({ cancelModalVisible, onDiscard, onCancel }: Props) => { | ||
return ( | ||
<> | ||
<Modal | ||
title="Discard Changes" | ||
visible={cancelModalVisible} | ||
destroyOnClose | ||
onCancel={onCancel} | ||
footer={[ | ||
<Button type="text" onClick={onCancel}> | ||
Cancel | ||
</Button>, | ||
<Button onClick={onDiscard}>Discard</Button>, | ||
]} | ||
> | ||
<p>Changes will not be saved. Do you want to proceed?</p> | ||
</Modal> | ||
</> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters