Skip to content

Commit

Permalink
Issue #PS-657 fix: Added cursor pointer on mark attendance modal
Browse files Browse the repository at this point in the history
  • Loading branch information
itsvick committed Jun 2, 2024
1 parent 1360431 commit 16e4d40
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/AttendanceStatusListView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ const AttendanceStatusListView: React.FC<AttendanceStatusListViewProps> = ({
ATTENDANCE_ENUM.PRESENT
) ? (
<CheckCircleIcon
sx={{ cursor: isDisabled ? 'default' : 'pointer' }}
style={{
fill: isDisabled
? theme.palette.success.main
Expand All @@ -181,6 +182,7 @@ const AttendanceStatusListView: React.FC<AttendanceStatusListViewProps> = ({
/>
) : (
<CheckCircleOutlineIcon
sx={{ cursor: isDisabled ? 'default' : 'pointer' }}
style={{
fill: isDisabled
? theme.palette.warning['400']
Expand Down Expand Up @@ -213,9 +215,10 @@ const AttendanceStatusListView: React.FC<AttendanceStatusListViewProps> = ({
{[userData?.attendance, bulkAttendanceStatus].includes(
ATTENDANCE_ENUM.ABSENT
) ? (
<CancelIcon style={{ fill: theme.palette.error.main }} />
<CancelIcon sx={{ cursor: isDisabled ? 'default' : 'pointer' }} style={{ fill: theme.palette.error.main }} />
) : (
<HighlightOffIcon
sx={{ cursor: isDisabled ? 'default' : 'pointer' }}
style={{
fill: isDisabled
? theme.palette.warning['400']
Expand Down

0 comments on commit 16e4d40

Please sign in to comment.