Skip to content

Commit 6483dd5

Browse files
committed
fix: removed my account related code
1 parent 39c8b49 commit 6483dd5

File tree

1 file changed

+0
-15
lines changed
  • src/shared/components/Settings/Account

1 file changed

+0
-15
lines changed

src/shared/components/Settings/Account/index.jsx

-15
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
import React from 'react';
33
import PT from 'prop-types';
44
import { PrimaryButton } from 'topcoder-react-ui-kit';
5-
import MyAccount from './MyAccount';
65
import MyPrimaryRole from './MyPrimaryRole';
76
import Security from './Security';
87
import ErrorWrapper from '../ErrorWrapper';
@@ -13,7 +12,6 @@ export default class Account extends React.Component {
1312
constructor(props) {
1413
super(props);
1514
this.save = this.save.bind(this);
16-
this.myAccountRef = React.createRef();
1715
}
1816

1917
componentWillReceiveProps() {
@@ -28,14 +26,6 @@ export default class Account extends React.Component {
2826
if (isSaving) {
2927
return;
3028
}
31-
const {
32-
newPassword,
33-
currentPassword,
34-
reNewPassword,
35-
passwordValid,
36-
rePasswordValid,
37-
updatingPassword,
38-
} = this.myAccountRef.current.state;
3929

4030
const newAccountDirty = newPassword !== ''
4131
&& currentPassword !== ''
@@ -50,7 +40,6 @@ export default class Account extends React.Component {
5040
}
5141

5242
if (dirty && valid) {
53-
this.myAccountRef.current.onUpdatePassword();
5443
setIsSaving(true);
5544
}
5645
}
@@ -77,10 +66,6 @@ export default class Account extends React.Component {
7766
<h3>Account information & Security</h3>
7867
</div>
7968
<MyPrimaryRole {...this.props} />
80-
<MyAccount
81-
{...this.props}
82-
ref={this.myAccountRef}
83-
/>
8469
<Security
8570
{...this.props}
8671
/>

0 commit comments

Comments
 (0)