Feature/user info request

This commit is contained in:
2024-11-11 11:41:59 +00:00
committed by AmirHossein Mahmoodi
parent 987ac1d316
commit a71458ce20
328 changed files with 11965 additions and 8254 deletions

View File

@@ -1,11 +1,10 @@
import {useTranslations} from "next-intl";
import {Dialog, DialogTitle, IconButton, Tooltip} from "@mui/material";
import KeyIcon from '@mui/icons-material/Key';
import {useState} from "react";
import { useTranslations } from "next-intl";
import { Dialog, DialogTitle, IconButton, Tooltip } from "@mui/material";
import KeyIcon from "@mui/icons-material/Key";
import { useState } from "react";
import ChangePasswordContent from "./ChangePasswordContent";
const ChangePassword = ({rowId, mutate}) => {
const ChangePassword = ({ rowId, mutate }) => {
const t = useTranslations();
const [openChnagePasswordDialog, setOpenChangePasswordDialog] = useState(false);
@@ -15,19 +14,30 @@ const ChangePassword = ({rowId, mutate}) => {
<IconButton
color="primary"
onClick={() => {
setOpenChangePasswordDialog(true)
setOpenChangePasswordDialog(true);
}}
>
<KeyIcon/>
<KeyIcon />
</IconButton>
</Tooltip>
<Dialog fullWidth maxWidth={'xs'} open={openChnagePasswordDialog}
PaperProps={{sx: {boxShadow: 'rgba(60, 64, 67, 0.3) 0px 1px 16px 0px, rgba(60, 64, 67, 0.15) 0px 1px 10px 0px'}}}>
<Dialog
fullWidth
maxWidth={"xs"}
open={openChnagePasswordDialog}
PaperProps={{
sx: {
boxShadow: "rgba(60, 64, 67, 0.3) 0px 1px 16px 0px, rgba(60, 64, 67, 0.15) 0px 1px 10px 0px",
},
}}
>
<DialogTitle>{t("ExpertMangement.change_password")}</DialogTitle>
<ChangePasswordContent rowId={rowId} mutate={mutate}
setOpenChangePasswordDialog={setOpenChangePasswordDialog}/>
<ChangePasswordContent
rowId={rowId}
mutate={mutate}
setOpenChangePasswordDialog={setOpenChangePasswordDialog}
/>
</Dialog>
</>
);
};
export default ChangePassword;
export default ChangePassword;