Skip to content

Commit

Permalink
(refactor): change modal registration name
Browse files Browse the repository at this point in the history
  • Loading branch information
NethmiRodrigo committed May 24, 2024
1 parent 5ba553e commit 0fbeb89
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const FormRenderer: React.FC<FormRendererProps> = ({

const handleConfirmQuestionDeletion = useCallback(() => {
return new Promise<void>((resolve, reject) => {
const dispose = showModal('delete-question-confirm-modal', {
const dispose = showModal('form-engine-delete-question-confirm-modal', {
onCancel() {
dispose();
reject();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const DeleteModal: React.FC<DeleteModalProps> = ({ onConfirm, onCancel }) => {
const { t } = useTranslation();

return (
<div>
<React.Fragment>
<ModalHeader
closeModal={onCancel}
title={t('deleteQuestionConfirmation', 'Are you sure you want to delete this question?')}
Expand All @@ -27,7 +27,7 @@ const DeleteModal: React.FC<DeleteModalProps> = ({ onConfirm, onCancel }) => {
{t('deleteQuestion', 'Delete question')}
</Button>
</ModalFooter>
</div>
</React.Fragment>
);
};

Expand Down
2 changes: 1 addition & 1 deletion packages/esm-form-engine-app/src/routes.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
],
"modals": [
{
"name": "delete-question-confirm-modal",
"name": "form-engine-delete-question-confirm-modal",
"component": "deleteQuestionModal"
}
],
Expand Down

0 comments on commit 0fbeb89

Please sign in to comment.