Skip to content

Commit

Permalink
Merge pull request #74 from suvarnakale/release-1.0.0
Browse files Browse the repository at this point in the history
Issue #000 chore: build issue fixed
  • Loading branch information
itsvick authored Aug 1, 2024
2 parents fc82526 + 58e9c27 commit c4c827b
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions src/components/AddFacilitator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ const AddFacilitatorModal: React.FC<AddFacilitatorModalprops> = ({
placeholder: '',
isMultiSelect: true,
sourceDetails: {},
required: true,
isRequired: true,
coreField: 0,
maxSelections: null,
};
Expand Down Expand Up @@ -204,16 +204,17 @@ const AddFacilitatorModal: React.FC<AddFacilitatorModalprops> = ({
};
const response = await editEditUser(userId, object);
if (response) {
showToastMessage(
t('COMMON.FACILITATOR_UPDATED_SUCCESSFULLY'),
'success');
showToastMessage(
t('COMMON.FACILITATOR_UPDATED_SUCCESSFULLY'),
'success'
);
setReloadProfile(true);
onReload?.();
}
} else {
const response = await createUser(apiBody);
console.log(response);
showToastMessage(t('LEARNERS.LEARNER_CREATED_SUCCESSFULLY'), 'success');
showToastMessage(t('COMMON.FACILITATOR_ADDED_SUCCESSFULLY'), 'success');
}
onClose();
} catch (error) {
Expand Down Expand Up @@ -241,7 +242,11 @@ const AddFacilitatorModal: React.FC<AddFacilitatorModalprops> = ({
open={open}
onClose={onClose}
showFooter={false}
modalTitle= {isEditModal ? t('COMMON.EDIT_FACILITATOR') : t('COMMON.NEW_FACILITATOR')}
modalTitle={
isEditModal
? t('COMMON.EDIT_FACILITATOR')
: t('COMMON.NEW_FACILITATOR')
}
>
{userFormData
? schema &&
Expand Down

0 comments on commit c4c827b

Please sign in to comment.