diff --git a/portal-ui/src/screens/Console/Account/AddServiceAccountScreen.tsx b/portal-ui/src/screens/Console/Account/AddServiceAccountScreen.tsx index 63e2bb845..5e30f5d3d 100644 --- a/portal-ui/src/screens/Console/Account/AddServiceAccountScreen.tsx +++ b/portal-ui/src/screens/Console/Account/AddServiceAccountScreen.tsx @@ -30,23 +30,20 @@ import { ServiceAccountIcon, } from "mds"; import { modalStyleUtils } from "../Common/FormComponents/common/styleLibrary"; -import CodeMirrorWrapper from "../Common/FormComponents/CodeMirrorWrapper/CodeMirrorWrapper"; -import AddServiceAccountHelpBox from "./AddServiceAccountHelpBox"; - import { NewServiceAccount } from "../Common/CredentialsPrompt/types"; import { IAM_PAGES } from "../../../common/SecureComponent/permissions"; -import CredentialsPrompt from "../Common/CredentialsPrompt/CredentialsPrompt"; - -import PanelTitle from "../Common/PanelTitle/PanelTitle"; - import { setErrorSnackMessage, setHelpName } from "../../../systemSlice"; import { useAppDispatch } from "../../../store"; -import PageHeaderWrapper from "../Common/PageHeaderWrapper/PageHeaderWrapper"; import { getRandomString } from "../../../common/utils"; import { api } from "api"; import { errorToHandler } from "api/errors"; -import HelpMenu from "../HelpMenu"; import { ContentType } from "api/consoleApi"; +import CodeMirrorWrapper from "../Common/FormComponents/CodeMirrorWrapper/CodeMirrorWrapper"; +import AddServiceAccountHelpBox from "./AddServiceAccountHelpBox"; +import CredentialsPrompt from "../Common/CredentialsPrompt/CredentialsPrompt"; +import PanelTitle from "../Common/PanelTitle/PanelTitle"; +import PageHeaderWrapper from "../Common/PageHeaderWrapper/PageHeaderWrapper"; +import HelpMenu from "../HelpMenu"; const AddServiceAccount = () => { const dispatch = useAppDispatch(); @@ -123,7 +120,7 @@ const AddServiceAccount = () => { {newServiceAccount !== null && ( { closeCredentialsModal(); }} diff --git a/portal-ui/src/screens/Console/Account/ChangeUserPasswordModal.tsx b/portal-ui/src/screens/Console/Account/ChangeUserPasswordModal.tsx index 5a47a1a8a..85cecec8a 100644 --- a/portal-ui/src/screens/Console/Account/ChangeUserPasswordModal.tsx +++ b/portal-ui/src/screens/Console/Account/ChangeUserPasswordModal.tsx @@ -15,47 +15,23 @@ // along with this program. If not, see . import React, { useState } from "react"; -import { Button, ChangePasswordIcon } from "mds"; -import { Theme } from "@mui/material/styles"; -import createStyles from "@mui/styles/createStyles"; -import withStyles from "@mui/styles/withStyles"; -import ModalWrapper from "../Common/ModalWrapper/ModalWrapper"; -import Grid from "@mui/material/Grid"; -import InputBoxWrapper from "../Common/FormComponents/InputBoxWrapper/InputBoxWrapper"; +import { Box, Button, ChangePasswordIcon, FormLayout, InputBox } from "mds"; import { LinearProgress } from "@mui/material"; -import { - containerForHeader, - formFieldStyles, - modalStyleUtils, - spacingUtils, -} from "../Common/FormComponents/common/styleLibrary"; - +import { modalStyleUtils } from "../Common/FormComponents/common/styleLibrary"; import { setModalErrorSnackMessage } from "../../../systemSlice"; import { useAppDispatch } from "../../../store"; import { api } from "api"; import { ChangeUserPasswordRequest } from "api/consoleApi"; import { errorToHandler } from "api/errors"; - -const styles = (theme: Theme) => - createStyles({ - buttonContainer: { - textAlign: "right", - }, - ...modalStyleUtils, - ...formFieldStyles, - ...spacingUtils, - ...containerForHeader, - }); +import ModalWrapper from "../Common/ModalWrapper/ModalWrapper"; interface IChangeUserPasswordProps { - classes: any; open: boolean; userName: string; closeModal: () => void; } const ChangeUserPassword = ({ - classes, open, userName, closeModal, @@ -123,37 +99,31 @@ const ChangeUserPassword = ({ changeUserPassword(e); }} > - - -
- Change password for: {userName} -
- - ) => { - setNewPassword(event.target.value); - }} - label="New Password" - type="password" - value={newPassword} - /> - - - ) => { - setReNewPassword(event.target.value); - }} - label="Type New Password Again" - type="password" - value={reNewPassword} - /> - -
- + + + Change password for: {userName} + + ) => { + setNewPassword(event.target.value); + }} + label="New Password" + type="password" + value={newPassword} + /> + ) => { + setReNewPassword(event.target.value); + }} + label="Type New Password Again" + type="password" + value={reNewPassword} + /> +