Skip to content

Commit

Permalink
Merge pull request #95 from AkshataKatwal16/admin
Browse files Browse the repository at this point in the history
Issue PS-1497 feat: optimize learner, facilitator, team leader  create updatemodal
  • Loading branch information
itsvick authored Aug 3, 2024
2 parents 5344b58 + bf89374 commit de40bea
Show file tree
Hide file tree
Showing 11 changed files with 194 additions and 842 deletions.
324 changes: 0 additions & 324 deletions src/components/AddFacilitator.tsx

This file was deleted.

6 changes: 3 additions & 3 deletions src/components/AddNewCenters.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ const AddNewCenters: React.FC<AddLearnerModalProps> = ({
handleDistrictChangeWrapper,
handleBlockChangeWrapper,
handleCenterChangeWrapper,
selectedBlockFieldId,
selectedBlockCohortId,
dynamicFormForBlock,
} = useLocationState(open, onClose);

Expand Down Expand Up @@ -96,8 +96,8 @@ const AddNewCenters: React.FC<AddLearnerModalProps> = ({
) => {
const formData = data?.formData;

if (selectedBlockFieldId) {
const parentId = selectedBlockFieldId;
if (selectedBlockCohortId) {
const parentId = selectedBlockCohortId;
const cohortDetails: CohortDetails = {
name: formData.name,
type: CohortTypes.COHORT,
Expand Down
Loading

0 comments on commit de40bea

Please sign in to comment.