Cancel button on json discard dialog.

This commit is contained in:
muzam1l
2022-07-18 17:10:13 +05:30
parent fdf33b9f45
commit 60f2bb558c

View File

@@ -66,6 +66,7 @@ export const TxJson: FC<JsonProps> = ({
showAlert("Confirm", {
body: "Are you sure to discard these changes?",
confirmText: "Yes",
onCancel: () => {},
onConfirm: () => setState({ editorValue: value }),
});
};