Skip to content

Commit f600696

Browse files
committed
#4025 fix build
1 parent fb93a21 commit f600696

2 files changed

Lines changed: 5 additions & 6 deletions

File tree

src/frontend/src/pages/ChangeRequestsPage/GuestChangeRequestsPage.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ import { useAllTeamTypes } from '../../hooks/team-types.hooks';
66
import { Chip, Typography } from '@mui/material';
77
import { useState } from 'react';
88
import { useAllGuestChangeRequests } from '../../hooks/change-requests.hooks';
9-
import { ChangeRequest, wbsPipe } from 'shared';
9+
import { GuestChangeRequest, wbsPipe } from 'shared';
1010
import { ChangeRequestTypeTextPipe, ChangeRequestStatusTextPipe } from '../../utils/enum-pipes';
1111

12-
const CrCard = ({ cr }: { cr: ChangeRequest }) => {
12+
const CrCard = ({ cr }: { cr: GuestChangeRequest }) => {
1313
const theme = useTheme();
1414

1515
const submitterName =
@@ -95,11 +95,11 @@ const GuestChangeRequestsPage: React.FC = () => {
9595
label={team.name}
9696
onClick={() =>
9797
setSelectedTeamTypes((prev) =>
98-
prev?.includes(team.name) ? prev.filter((t: string) => t !== team.name) : [...(prev || []), team.name]
98+
prev.includes(team.name) ? prev.filter((t: string) => t !== team.name) : [...(prev || []), team.name]
9999
)
100100
}
101101
clickable
102-
color={selectedTeamTypes?.includes(team.name) ? 'primary' : 'default'}
102+
color={selectedTeamTypes.includes(team.name) ? 'primary' : 'default'}
103103
sx={{ flexShrink: 0 }}
104104
/>
105105
))}

src/frontend/src/tests/pages/ChangeRequestDetailPage/ReviewChangeRequest.test.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,7 @@ const renderComponent = (modalShow: boolean, route: string) => {
3535
type: 'ISSUE',
3636
wbsName: 'a',
3737
status: ChangeRequestStatus.Open,
38-
requestedReviewers: [],
39-
teamTypeNames: []
38+
requestedReviewers: []
4039
}}
4140
modalShow={modalShow}
4241
handleClose={() => null}

0 commit comments

Comments
 (0)