Web:Client:Accounts: delete useless code
This commit is contained in:
parent
8bcfa96959
commit
93b6bdac75
@ -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,
|
||||
|
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user