diff --git a/src/components/SiteSettings/ProjectManagement/ProjectUsersButtonWithConfirmation.tsx b/src/components/SiteSettings/ProjectManagement/ProjectUsersButtonWithConfirmation.tsx index cf2b0cdb10..9a94ab801f 100644 --- a/src/components/SiteSettings/ProjectManagement/ProjectUsersButtonWithConfirmation.tsx +++ b/src/components/SiteSettings/ProjectManagement/ProjectUsersButtonWithConfirmation.tsx @@ -1,16 +1,15 @@ -import { Close } from "@mui/icons-material"; import { Button, Dialog, DialogContent, DialogTitle, Divider, - IconButton, Typography, } from "@mui/material"; import { ReactElement, useEffect, useState } from "react"; import { useTranslation } from "react-i18next"; +import { CloseButton } from "components/Buttons"; import { asyncRefreshProjectUsers } from "components/Project/ProjectActions"; import ActiveProjectUsers from "components/ProjectUsers/ActiveProjectUsers"; import AddProjectUsers from "components/ProjectUsers/AddProjectUsers"; @@ -21,9 +20,7 @@ interface ProjectUsersButtonWithConfirmationProps { projectId: string; } -/** - * Button for managing user roles in a project. - */ +/** Button for managing user roles in a project. */ export default function ProjectUsersButtonWithConfirmation( props: ProjectUsersButtonWithConfirmationProps ): ReactElement { @@ -42,16 +39,11 @@ export default function ProjectUsersButtonWithConfirmation( {t("siteSettings.projectRoles")} setOpen(false)} open={open}> - - {t("siteSettings.projectRoles")} - setOpen(false)} - sx={{ position: "absolute", right: 8, top: 8 }} - > - - + + {t("siteSettings.projectRoles")} + setOpen(false)} /> +