Skip to content

Commit

Permalink
Issue #PS-000 feat: Bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
itsvick committed Aug 27, 2024
1 parent 91fd74d commit db7dd51
Show file tree
Hide file tree
Showing 9 changed files with 463 additions and 670 deletions.
8 changes: 8 additions & 0 deletions app.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,11 @@ export const DaysOfWeek = {
Fri: 5,
Sat: 6,
};

export const Program = "Second chance";

export enum AssessmentType {
PRE_TEST = 'Pre Test',
POST_TEST = 'Post Test',
}

12 changes: 0 additions & 12 deletions src/components/CohortSelectionSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -332,18 +332,6 @@ const CohortSelectionSection: React.FC<CohortSelectionSectionProps> = ({
// ---------- set cohortId and stateName-----------
const cohort_id = event.target.value;
localStorage.setItem('cohortId', cohort_id);

const get_state_name: string | null = getStateByCohortId(cohort_id);
if (get_state_name) {
localStorage.setItem('stateName', get_state_name);
} else {
localStorage.setItem('stateName', '');
console.log('NO State For Selected Cohort');
}
function getStateByCohortId(cohortId: any) {
const cohort = cohortsData?.find((item) => item.cohortId === cohortId);
return cohort ? cohort?.state : null;
}
};

const isAttendanceOverview = pathname === '/attendance-overview';
Expand Down
4 changes: 2 additions & 2 deletions src/components/ConfirmationModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const ConfirmationModal: React.FC<ConfirmationModalProps> = ({
buttonNames,
handleCloseModal,
}) => {
const theme = useTheme();
const theme = useTheme<any>();

const style = {
position: 'absolute',
Expand All @@ -50,7 +50,7 @@ const ConfirmationModal: React.FC<ConfirmationModalProps> = ({
aria-describedby="confirmation-modal-description"
>
<Box sx={style}>
<Box sx={{ p: 3 }} id="confirmation-modal-title">
<Box sx={{ p: 3 }} color={theme.palette.warning['300']} id="confirmation-modal-title">
{message}
</Box>
<Divider />
Expand Down
Loading

0 comments on commit db7dd51

Please sign in to comment.