Skip to content

Commit

Permalink
[SiteSettings] Fix project roles dialog title (#3600)
Browse files Browse the repository at this point in the history
  • Loading branch information
imnasnainaec authored Feb 13, 2025
1 parent e185a5d commit 48d059d
Showing 1 changed file with 6 additions and 14 deletions.
Original file line number Diff line number Diff line change
@@ -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";
Expand All @@ -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 {
Expand All @@ -42,16 +39,11 @@ export default function ProjectUsersButtonWithConfirmation(
{t("siteSettings.projectRoles")}
</Button>
<Dialog maxWidth={false} onClose={() => setOpen(false)} open={open}>
<DialogTitle>
<Typography variant="h5">{t("siteSettings.projectRoles")}</Typography>
<IconButton
aria-label="close"
onClick={() => setOpen(false)}
sx={{ position: "absolute", right: 8, top: 8 }}
>
<Close />
</IconButton>
<DialogTitle variant="h5">
{t("siteSettings.projectRoles")}
<CloseButton close={() => setOpen(false)} />
</DialogTitle>

<ProjUsersDialogContent projectId={props.projectId} />
</Dialog>
</>
Expand Down

0 comments on commit 48d059d

Please sign in to comment.