Skip to content

Commit

Permalink
Resolved comments
Browse files Browse the repository at this point in the history
  • Loading branch information
mahajanmahesh935 committed Jan 20, 2025
1 parent e6acf1a commit 0a7034c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
16 changes: 8 additions & 8 deletions src/components/LearnerModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ const LearnerModal = ({
motherName,
subProgram,
grade,
accesstoWhatsApp,
accessToWhatsApp,
program,
}: {
userId?: string;
Expand All @@ -114,12 +114,12 @@ const LearnerModal = ({
userName?: string;
contactNumber?: any;
enrollmentNumber?: any;
fatherName?: any;
motherName?: any;
subProgram?: any;
grade?: any;
accesstoWhatsApp?: any;
program? :any;
fatherName?: string;
motherName?: string;
subProgram?: string;
grade?: number;
accessToWhatsApp?: string;
program? :string;
}) => {
const { t } = useTranslation();

Expand Down Expand Up @@ -255,7 +255,7 @@ const LearnerModal = ({
</Typography>
<Box display="flex">
<Typography sx={fieldValueStyles(theme)}>
{accesstoWhatsApp || '-'}
{accessToWhatsApp || '-'}
</Typography>
</Box>
</Grid>
Expand Down
6 changes: 3 additions & 3 deletions src/components/LearnersListItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ const LearnersListItem: React.FC<LearnerListProps> = ({
const [subProgram, setSubProgramName]=React.useState();
const[program , setProgram]=React.useState();
const [grade, setGradeName]=React.useState()
const [accesstoWhatsApp, setAccesstoWhatsAppName]=React.useState()
const [accessToWhatsApp, setAccessToWhatsAppName]=React.useState()
const store = manageUserStore();
const reassignStore = reassignLearnerStore();
const setReassignId = reassignLearnerStore((state) => state.setReassignId);
Expand Down Expand Up @@ -323,7 +323,7 @@ const LearnersListItem: React.FC<LearnerListProps> = ({
setGradeName(field.value)
}
else if(field.label === "ACCESS_TO_WHATSAPP"){
setAccesstoWhatsAppName(field.value)
setAccessToWhatsAppName(field.value)
}
else if(field.label === "PROGRAM"){
setProgram(field.value)
Expand Down Expand Up @@ -452,7 +452,7 @@ const LearnersListItem: React.FC<LearnerListProps> = ({
motherName={motherName}
subProgram={subProgram}
grade={grade}
accesstoWhatsApp={accesstoWhatsApp}
accessToWhatsApp={accessToWhatsApp}
program={program}
/>
)}
Expand Down

0 comments on commit 0a7034c

Please sign in to comment.