Skip to content
This repository was archived by the owner on Apr 5, 2020. It is now read-only.

Commit 19fbaf3

Browse files
committed
small syntax updates
1 parent 774e935 commit 19fbaf3

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

src/components/Nav/AdminNav.js

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,7 @@ class AdminNav extends React.Component {
1717

1818
constructor(props) {
1919
super(props);
20-
21-
this.state = {
22-
menuOpen: true
23-
}
20+
this.state = { menuOpen: true };
2421
}
2522

2623
handleToggleMenu() {
@@ -37,21 +34,21 @@ class AdminNav extends React.Component {
3734
e.preventDefault();
3835
auth.logout(() => {
3936
// dispatch an action if the server has successfully logged out the user.
40-
this.props.logoutUser('/login');
37+
this.props.logoutUser("/login");
4138
}, () => {
4239
this.props.loginUser(auth.getUser(), auth.getToken(), true)
4340
}, this.props.dispatch);
4441
}
4542

4643
renderBackButton() {
47-
return (this.props.pluralName === '' || this.props.adminPageType === 'index') ? null
44+
return (this.props.pluralName === "" || this.props.adminPageType === 'index') ? null
4845
: <BackButton
4946
label={this.props.pluralName}
50-
link={'/admin/' + this.props.pluralName} />
47+
link={'/admin/' + this.props.pluralName}
48+
/>
5149
}
5250

5351
render() {
54-
5552
let iconElementRight = null;
5653

5754
if(this.props.loggedIn) {

0 commit comments

Comments
 (0)