Skip to content

Commit f14fc2f

Browse files
committed
#4023 lint
1 parent 9c8f484 commit f14fc2f

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/frontend/src/pages/ProjectDetailPage/ProjectViewContainer/ProjectViewContainer.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*/
55

66
import { Link, useHistory } from 'react-router-dom';
7-
import { Project, isGuest, isAdmin, isLeadership } from 'shared';
7+
import { Project, isGuest, isAdmin, isLeadership, RoleEnum } from 'shared';
88
import { projectWbsPipe, wbsPipe } from '../../../utils/pipes';
99
import ProjectDetails from './ProjectDetails';
1010
import { routes } from '../../../utils/routes';
@@ -207,7 +207,7 @@ const ProjectViewContainer: React.FC<ProjectViewContainerProps> = ({ project, en
207207
{tab === 0 ? (
208208
<ProjectDetails project={project} />
209209
) : tab === 1 ? (
210-
<TaskList project={project} isGuest={user.role == 'GUEST'} />
210+
<TaskList project={project} isGuest={user.role === RoleEnum.GUEST} />
211211
) : tab === 2 ? (
212212
<BOMTab project={project} />
213213
) : tab === 3 ? (

src/frontend/src/pages/ProjectDetailPage/ProjectViewContainer/TaskList/v2/TaskList.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { useMediaQuery, Typography, Theme } from '@mui/material';
1+
import { useMediaQuery, Theme } from '@mui/material';
22
import { Project } from 'shared';
33
import { TaskListContent } from './TaskListContent';
44
import { GuestsTasksList } from '../GuestTasksList';

0 commit comments

Comments
 (0)