Skip to content

Commit 5a60be2

Browse files
authored
Merge pull request #52 from back4app/fix-menu-links-2
Fix menu links
2 parents 17aba2c + d1281ca commit 5a60be2

File tree

3 files changed

+12
-11
lines changed

3 files changed

+12
-11
lines changed

src/components/back4App/Header/Header.react.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ export default class Header extends React.Component {
1717
this.state = {
1818
username: null
1919
};
20-
}
20+
}
2121
componentWillMount() {
2222
/*
2323
- 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
2525
before the App was injected in the router. This is a simple temporary solution.
2626
*/
2727
fetch('https://dashboard.back4app.com/me', {
@@ -66,11 +66,11 @@ export default class Header extends React.Component {
6666
}} />
6767
</div>
6868
</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">
7070
<Icon width={46} height={47} name='back4app-logo-face-blue' fill='#208AEC' />
7171
</a>
7272
<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">
7474
<Icon width={134} height={53} name='back4app-logo-text-blue' fill='#208AEC' />
7575
</a>
7676
</Media>

src/components/back4App/Header/headerNavData.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ const headerNavData = {
99
dropdownItems: [
1010
{label: 'Account Keys', url:'https://dashboard.back4app.com/classic#/wizard/account-key'},
1111
{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'}
1314
]
1415
}
1516

@@ -18,4 +19,4 @@ headerNavData.sidebarItems = [
1819
...headerNavData.dropdownItems,
1920
]
2021

21-
export default headerNavData;
22+
export default headerNavData;

src/components/back4App/Sidebar/Sidebar.react.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import navData from 'components/back4App/Header/headerNavData.js';
1111
const _renderHeaderMenuItems = items => items.map(({label, pathname, url}, index) => (
1212
<div key={index} className={styles['menu-item']}>
1313
<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}>
1515
<i className={`${styles['icon-circle']} zmdi zmdi-circle`}></i>
1616
{label}
1717
</a>
@@ -55,7 +55,7 @@ let sidebarContent = (
5555
</div>
5656
);
5757

58-
class Sidebar extends Component {
58+
class Sidebar extends Component {
5959
constructor(props) {
6060
super(props);
6161

@@ -82,13 +82,13 @@ class Sidebar extends Component {
8282
this.getStateByScreenSize()
8383
});
8484
}
85-
85+
8686
componentWillReceiveProps(nextProps) {
8787
this.setState({
8888
isOpen: nextProps.isOpen
8989
});
9090
}
91-
91+
9292
render() {
9393
let { isOpen } = this.state;
9494
let { sidebarToggle } = this.props;
@@ -106,4 +106,4 @@ class Sidebar extends Component {
106106
}
107107
}
108108

109-
export default Sidebar;
109+
export default Sidebar;

0 commit comments

Comments
 (0)