This repository was archived by the owner on Apr 5, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -17,10 +17,7 @@ class AdminNav extends React.Component {
17
17
18
18
constructor ( props ) {
19
19
super ( props ) ;
20
-
21
- this . state = {
22
- menuOpen : true
23
- }
20
+ this . state = { menuOpen : true } ;
24
21
}
25
22
26
23
handleToggleMenu ( ) {
@@ -37,21 +34,21 @@ class AdminNav extends React.Component {
37
34
e . preventDefault ( ) ;
38
35
auth . logout ( ( ) => {
39
36
// dispatch an action if the server has successfully logged out the user.
40
- this . props . logoutUser ( ' /login' ) ;
37
+ this . props . logoutUser ( " /login" ) ;
41
38
} , ( ) => {
42
39
this . props . loginUser ( auth . getUser ( ) , auth . getToken ( ) , true )
43
40
} , this . props . dispatch ) ;
44
41
}
45
42
46
43
renderBackButton ( ) {
47
- return ( this . props . pluralName === '' || this . props . adminPageType === 'index' ) ? null
44
+ return ( this . props . pluralName === "" || this . props . adminPageType === 'index' ) ? null
48
45
: < BackButton
49
46
label = { this . props . pluralName }
50
- link = { '/admin/' + this . props . pluralName } />
47
+ link = { '/admin/' + this . props . pluralName }
48
+ />
51
49
}
52
50
53
51
render ( ) {
54
-
55
52
let iconElementRight = null ;
56
53
57
54
if ( this . props . loggedIn ) {
You can’t perform that action at this time.
0 commit comments