We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6324fb4 commit 3ae89b1Copy full SHA for 3ae89b1
1 file changed
src/frontend/src/pages/ProjectDetailPage/ProjectViewContainer/BOMTab.tsx
@@ -1,5 +1,5 @@
1
import { Box } from '@mui/system';
2
-import { MaterialPreview, Project, isGuest, isAtMostRank } from 'shared';
+import { MaterialPreview, Project, isGuest } from 'shared';
3
import { NERButton } from '../../../components/NERButton';
4
import WarningIcon from '@mui/icons-material/Warning';
5
import { Tooltip, useTheme } from '@mui/material';
@@ -93,7 +93,7 @@ const BOMTab = ({ project }: { project: Project }) => {
93
>
94
Show All Columns
95
</NERButton>
96
- <NERButton variant="contained" onClick={() => {}} disabled={isAtMostRank('MEMBER', user.role)}>
+ <NERButton variant="contained" onClick={() => {}} disabled={isGuest(user.role)}>
97
Copy Existing BOM
98
99
</Box>
0 commit comments