Web:Client:Accounts: delete useless code

This commit is contained in:
TimofeyBoyko 2022-09-08 13:59:17 +03:00
parent 8bcfa96959
commit 93b6bdac75
2 changed files with 7 additions and 2 deletions

View File

@ -6,6 +6,7 @@ import { EmployeeType, EmployeeStatus } from "@docspace/common/constants";
import {
ChangeEmailDialog,
ChangePasswordDialog,
ChangePortalOwnerDialog,
DeleteSelfProfileDialog,
DeleteProfileEverDialog,
ChangeUserTypeDialog,
@ -18,6 +19,7 @@ import {
const Dialogs = ({
changeEmail,
changePassword,
changeOwner,
deleteSelfProfile,
deleteProfileEver,
data,
@ -46,6 +48,9 @@ const Dialogs = ({
email={data.email}
/>
)}
{changeOwner && (
<ChangePortalOwnerDialog visible={changeOwner} onClose={closeDialogs} />
)}
{deleteSelfProfile && (
<DeleteSelfProfileDialog
visible={deleteSelfProfile}
@ -116,6 +121,7 @@ export default inject(({ peopleStore }) => {
const {
changeEmail,
changePassword,
changeOwner,
deleteSelfProfile,
deleteProfileEver,
data,
@ -133,6 +139,7 @@ export default inject(({ peopleStore }) => {
return {
changeEmail,
changePassword,
changeOwner,
deleteSelfProfile,
deleteProfileEver,
data,

View File

@ -22,7 +22,6 @@ import {
} from "./Section";
import Dialogs from "./Section/Body/Dialogs"; //TODO: Move dialogs to another folder
import { ChangePortalOwnerDialog } from "SRC_DIR/components/dialogs";
const PureHome = ({
isLoading,
@ -77,7 +76,6 @@ const PureHome = ({
return (
<>
<ChangePortalOwnerDialog />
<Section
withBodyScroll
withBodyAutoFocus={!isMobile}