mirror of
https://github.com/Unleash/unleash.git
synced 2025-09-15 17:50:48 +02:00
cleanup
This commit is contained in:
parent
a32a4590d0
commit
29af549799
@ -22,7 +22,6 @@ import {
|
||||
StyledBox,
|
||||
StyledH2Title,
|
||||
StyledEditIcon,
|
||||
StyledDeleteIcon,
|
||||
StyledProjectIcon,
|
||||
StyledDivInfo,
|
||||
StyledDivInfoContainer,
|
||||
@ -49,7 +48,7 @@ export const ProjectCard = ({
|
||||
isFavorite = false,
|
||||
}: IProjectCardProps) => {
|
||||
const { hasAccess } = useContext(AccessContext);
|
||||
const { isOss, uiConfig } = useUiConfig();
|
||||
const { isOss } = useUiConfig();
|
||||
const [anchorEl, setAnchorEl] = useState<Element | null>(null);
|
||||
const [showDelDialog, setShowDelDialog] = useState(false);
|
||||
const navigate = useNavigate();
|
||||
@ -61,9 +60,6 @@ export const ProjectCard = ({
|
||||
setAnchorEl(event.currentTarget);
|
||||
};
|
||||
|
||||
const canDeleteProject =
|
||||
hasAccess(DELETE_PROJECT, id) && id !== DEFAULT_PROJECT_ID;
|
||||
|
||||
const onFavorite = async (e: React.SyntheticEvent) => {
|
||||
e.preventDefault();
|
||||
if (isFavorite) {
|
||||
|
Loading…
Reference in New Issue
Block a user