Feature/user info request
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user