mirror of
https://github.com/status-im/spiff-arena.git
synced 2025-02-28 09:20:32 +00:00
specify onRequestClose on modals w/ burnettk cullerton
This commit is contained in:
parent
e2a2e42712
commit
e931f41250
@ -53,6 +53,7 @@ export default function ButtonWithConfirmation({
|
|||||||
secondaryButtonText="Cancel"
|
secondaryButtonText="Cancel"
|
||||||
onSecondarySubmit={handleConfirmationPromptCancel}
|
onSecondarySubmit={handleConfirmationPromptCancel}
|
||||||
onRequestSubmit={handleConfirmation}
|
onRequestSubmit={handleConfirmation}
|
||||||
|
onRequestClose={handleConfirmationPromptCancel}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
@ -215,6 +215,7 @@ export default function ProcessModelEditDiagram() {
|
|||||||
secondaryButtonText="Cancel"
|
secondaryButtonText="Cancel"
|
||||||
onSecondarySubmit={handleFileNameCancel}
|
onSecondarySubmit={handleFileNameCancel}
|
||||||
onRequestSubmit={handleFileNameSave}
|
onRequestSubmit={handleFileNameSave}
|
||||||
|
onRequestClose={handleFileNameCancel}
|
||||||
>
|
>
|
||||||
<label>File Name:</label>
|
<label>File Name:</label>
|
||||||
<span>
|
<span>
|
||||||
@ -607,6 +608,7 @@ export default function ProcessModelEditDiagram() {
|
|||||||
primaryButtonText="Close"
|
primaryButtonText="Close"
|
||||||
onRequestSubmit={handleScriptEditorClose}
|
onRequestSubmit={handleScriptEditorClose}
|
||||||
size="lg"
|
size="lg"
|
||||||
|
onRequestClose={handleScriptEditorClose}
|
||||||
>
|
>
|
||||||
<Editor
|
<Editor
|
||||||
height={500}
|
height={500}
|
||||||
@ -644,6 +646,7 @@ export default function ProcessModelEditDiagram() {
|
|||||||
modalHeading="Edit Markdown"
|
modalHeading="Edit Markdown"
|
||||||
primaryButtonText="Close"
|
primaryButtonText="Close"
|
||||||
onRequestSubmit={handleMarkdownEditorClose}
|
onRequestSubmit={handleMarkdownEditorClose}
|
||||||
|
onRequestClose={handleMarkdownEditorClose}
|
||||||
size="lg"
|
size="lg"
|
||||||
>
|
>
|
||||||
<MDEditor
|
<MDEditor
|
||||||
|
@ -132,6 +132,7 @@ export default function ReactFormEditor() {
|
|||||||
secondaryButtonText="Cancel"
|
secondaryButtonText="Cancel"
|
||||||
onSecondarySubmit={handleFileNameCancel}
|
onSecondarySubmit={handleFileNameCancel}
|
||||||
onRequestSubmit={handleFileNameSave}
|
onRequestSubmit={handleFileNameSave}
|
||||||
|
onRequestClose={handleFileNameCancel}
|
||||||
>
|
>
|
||||||
<label>File Name:</label>
|
<label>File Name:</label>
|
||||||
<span>
|
<span>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user