File tree 1 file changed +0
-15
lines changed
src/shared/components/Settings/Account
1 file changed +0
-15
lines changed Original file line number Diff line number Diff line change 2
2
import React from 'react' ;
3
3
import PT from 'prop-types' ;
4
4
import { PrimaryButton } from 'topcoder-react-ui-kit' ;
5
- import MyAccount from './MyAccount' ;
6
5
import MyPrimaryRole from './MyPrimaryRole' ;
7
6
import Security from './Security' ;
8
7
import ErrorWrapper from '../ErrorWrapper' ;
@@ -13,7 +12,6 @@ export default class Account extends React.Component {
13
12
constructor ( props ) {
14
13
super ( props ) ;
15
14
this . save = this . save . bind ( this ) ;
16
- this . myAccountRef = React . createRef ( ) ;
17
15
}
18
16
19
17
componentWillReceiveProps ( ) {
@@ -28,14 +26,6 @@ export default class Account extends React.Component {
28
26
if ( isSaving ) {
29
27
return ;
30
28
}
31
- const {
32
- newPassword,
33
- currentPassword,
34
- reNewPassword,
35
- passwordValid,
36
- rePasswordValid,
37
- updatingPassword,
38
- } = this . myAccountRef . current . state ;
39
29
40
30
const newAccountDirty = newPassword !== ''
41
31
&& currentPassword !== ''
@@ -50,7 +40,6 @@ export default class Account extends React.Component {
50
40
}
51
41
52
42
if ( dirty && valid ) {
53
- this . myAccountRef . current . onUpdatePassword ( ) ;
54
43
setIsSaving ( true ) ;
55
44
}
56
45
}
@@ -77,10 +66,6 @@ export default class Account extends React.Component {
77
66
< h3 > Account information & Security </ h3 >
78
67
</ div >
79
68
< MyPrimaryRole { ...this . props } />
80
- < MyAccount
81
- { ...this . props }
82
- ref = { this . myAccountRef }
83
- />
84
69
< Security
85
70
{ ...this . props }
86
71
/>
You can’t perform that action at this time.
0 commit comments