File tree Expand file tree Collapse file tree 3 files changed +12
-11
lines changed Expand file tree Collapse file tree 3 files changed +12
-11
lines changed Original file line number Diff line number Diff line change @@ -17,11 +17,11 @@ export default class Header extends React.Component {
17
17
this . state = {
18
18
username : null
19
19
} ;
20
- }
20
+ }
21
21
componentWillMount ( ) {
22
22
/*
23
23
- This resource should be implemented following parse-dashboard community standards (using flux).
24
- But it was actualy not possible to use the subscribeTo decorator in the Header component
24
+ But it was actualy not possible to use the subscribeTo decorator in the Header component
25
25
before the App was injected in the router. This is a simple temporary solution.
26
26
*/
27
27
fetch ( 'https://dashboard.back4app.com/me' , {
@@ -66,11 +66,11 @@ export default class Header extends React.Component {
66
66
} } />
67
67
</ div >
68
68
</ Media >
69
- < a className = { styles [ 'logo-face' ] } href = "http ://www .back4app.com/" >
69
+ < a className = { styles [ 'logo-face' ] } href = "https ://dashboard .back4app.com/apps/#!/admin " >
70
70
< Icon width = { 46 } height = { 47 } name = 'back4app-logo-face-blue' fill = '#208AEC' />
71
71
</ a >
72
72
< Media query = "(min-width: 680px)" >
73
- < a className = { styles [ 'logo-text' ] } href = "http ://www .back4app.com/" >
73
+ < a className = { styles [ 'logo-text' ] } href = "https ://dashboard .back4app.com/apps/#!/admin " >
74
74
< Icon width = { 134 } height = { 53 } name = 'back4app-logo-text-blue' fill = '#208AEC' />
75
75
</ a >
76
76
</ Media >
Original file line number Diff line number Diff line change @@ -9,7 +9,8 @@ const headerNavData = {
9
9
dropdownItems : [
10
10
{ label : 'Account Keys' , url :'https://dashboard.back4app.com/classic#/wizard/account-key' } ,
11
11
{ label : 'Edit Email' , url :'https://dashboard.back4app.com/email/change' } ,
12
- { label : 'Edit Password' , url :'https://dashboard.back4app.com/password/change' }
12
+ { label : 'Edit Password' , url :'https://dashboard.back4app.com/password/change' } ,
13
+ { label : 'Sign Out' , url :'https://dashboard.back4app.com/logout' }
13
14
]
14
15
}
15
16
@@ -18,4 +19,4 @@ headerNavData.sidebarItems = [
18
19
...headerNavData . dropdownItems ,
19
20
]
20
21
21
- export default headerNavData ;
22
+ export default headerNavData ;
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ import navData from 'components/back4App/Header/headerNavData.js';
11
11
const _renderHeaderMenuItems = items => items . map ( ( { label, pathname, url} , index ) => (
12
12
< div key = { index } className = { styles [ 'menu-item' ] } >
13
13
< div className = { `${ styles [ 'menu-item-header' ] } ${ index === 1 && styles . active } ` } role = "tab" >
14
- < a className = { styles . link } href = { pathname || url } title = "Edit email" >
14
+ < a className = { styles . link } href = { pathname || url } title = { label } >
15
15
< i className = { `${ styles [ 'icon-circle' ] } zmdi zmdi-circle` } > </ i >
16
16
{ label }
17
17
</ a >
@@ -55,7 +55,7 @@ let sidebarContent = (
55
55
</ div >
56
56
) ;
57
57
58
- class Sidebar extends Component {
58
+ class Sidebar extends Component {
59
59
constructor ( props ) {
60
60
super ( props ) ;
61
61
@@ -82,13 +82,13 @@ class Sidebar extends Component {
82
82
this . getStateByScreenSize ( )
83
83
} ) ;
84
84
}
85
-
85
+
86
86
componentWillReceiveProps ( nextProps ) {
87
87
this . setState ( {
88
88
isOpen : nextProps . isOpen
89
89
} ) ;
90
90
}
91
-
91
+
92
92
render ( ) {
93
93
let { isOpen } = this . state ;
94
94
let { sidebarToggle } = this . props ;
@@ -106,4 +106,4 @@ class Sidebar extends Component {
106
106
}
107
107
}
108
108
109
- export default Sidebar ;
109
+ export default Sidebar ;
You can’t perform that action at this time.
0 commit comments