Skip to content

Commit

Permalink
Merge pull request #77 from Aar-if/reassignFix
Browse files Browse the repository at this point in the history
Issue-1388 chore: Bar diagram library RND and setup for showing attendance report
  • Loading branch information
itsvick authored Aug 2, 2024
2 parents 993ff7c + be26cf8 commit 25ffee8
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/pages/dashboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ import calendar from '../assets/images/calendar.svg';
import Header from '../components/Header';
import Loader from '../components/Loader';
import useDeterminePathColor from '../hooks/useDeterminePathColor';
import { Role } from '@/utils/app.constant';

interface DashboardProps {}

Expand Down Expand Up @@ -86,7 +87,7 @@ const Dashboard: React.FC<DashboardProps> = () => {
const formattedSevenDaysAgo = shortDateFormat(sevenDaysAgo);
const [userId, setUserId] = React.useState<string | null>(null);
const [blockName, setBlockName] = React.useState<string>('');

const role = localStorage.getItem('role');
useEffect(() => {
setIsClient(true);
const calculateDateRange = () => {
Expand Down Expand Up @@ -873,9 +874,11 @@ const Dashboard: React.FC<DashboardProps> = () => {
</Box>
</Box>
</Box>
<Box p={2}>
<AttendanceComparison />
</Box>
{role === Role.TEAM_LEADER && (
<Box p={2}>
<AttendanceComparison />
</Box>
)}
{/* <Box sx={{ background: '#fff' }}>
<Typography
textAlign={'left'}
Expand Down

0 comments on commit 25ffee8

Please sign in to comment.