Skip to content

Commit f2d86d2

Browse files
committed
#3392 display filtering and sub guide correctly
1 parent c25f23a commit f2d86d2

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

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

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
11
import LoadingIndicator from '../../../../components/LoadingIndicator';
2-
import { Box, Stack } from '@mui/system';
3-
import { Grid, FormControlLabel, Autocomplete, TextField, Button, Chip, Typography } from '@mui/material';
2+
import { Grid, Box, FormControlLabel, Autocomplete, TextField, Button, Chip, Typography } from '@mui/material';
43
import { useMemo, useState } from 'react';
54
import { useAllUsers, useCurrentUser } from '../../../../hooks/users.hooks';
65
import { Project, rankUserRole, Review_Status, wbsPipe } from 'shared';
76
import NERSwitch from '../../../../components/NERSwitch';
8-
import PartDisplay from '../../../PartPage/PartPageComponents/PartDisplay';
97
import { useGetAllPartTags, usePartsFromProject } from '../../../../hooks/part-review.hooks';
108
import ErrorPage from '../../../ErrorPage';
11-
import { Link as RouterLink } from 'react-router-dom';
129
import CreateMenu from './PartReviewComponents/PartFormModels/CreateMenu';
1310
import SubmissionGuide from './PartReviewComponents/SubmissionGuide';
1411
import { PartPreviewCard } from './PartReviewComponents/PartPreviewCard';
@@ -273,9 +270,7 @@ const PartsReviewPage = ({ project }: { project: Project }) => {
273270
<Grid container spacing={3}>
274271
<Grid item xs={12}>
275272
{/* The guide should be toggled off by default for admins, heads, and leads and toggled on for all other roles */}
276-
{showSubmissionGuide && (
277-
<SubmissionGuide />
278-
)}
273+
{showSubmissionGuide && <SubmissionGuide />}
279274
<Typography variant="h4" sx={{ mb: 2 }}>
280275
{`${filteredParts?.length === parts.length ? 'All ' : ''} Parts for ${project.name}`}
281276
</Typography>

0 commit comments

Comments
 (0)