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

Commit ac8dd86

Browse files
committed
cleaned up some whitespace
1 parent 9c43ff6 commit ac8dd86

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

src/components/Nav/AdminNav.js

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -66,33 +66,33 @@ class AdminNav extends React.Component {
6666
<MenuItem primaryText="Settings" containerElement={<Link to="/admin/settings"/>} />
6767
<MenuItem primaryText="Log Out" onTouchTap={(event) => this.handleLogout(event)} />
6868
</IconMenu>
69-
)
69+
);
7070
}
7171

7272
return (
7373
<div>
74-
<Drawer
74+
<Drawer
7575
open={this.state.menuOpen}
76-
docked={false}
76+
docked={false}
7777
onRequestChange={() => this.handleToggleMenu()}
7878
>
7979
<AdminMenu currentUser={this.props.user} routeOptions={AppConfig.routes.admin} />
8080
</Drawer>
8181
<header>
82-
<AppBar
82+
<AppBar
8383
title={(
8484
<div className="title-wrapper">
8585
<h1 className="admin-title">{AppConfig.cmsTitle ? AppConfig.cmsTitle : 'React CMS'}</h1>
8686
{this.renderBackButton()}
8787
</div>
88-
)}
89-
onLeftIconButtonTouchTap={() => this.handleToggleMenu()}
90-
style={{position: 'fixed'}}
88+
)}
89+
onLeftIconButtonTouchTap={() => this.handleToggleMenu()}
90+
style={{ position: 'fixed' }}
9191
iconElementRight={iconElementRight}
9292
/>
9393
</header>
9494
</div>
95-
)
95+
);
9696
}
9797
}
9898

@@ -103,32 +103,32 @@ const mapStateToProps = (state) => {
103103
token: state.auth.token,
104104
location: state.routing.locationBeforeTransitions,
105105
pluralName: state.admin.resource.name.plural,
106-
adminPageType: state.admin.pageType
107-
}
108-
}
106+
adminPageType: state.admin.pageType,
107+
};
108+
};
109109

110110
const mapDispatchToProps = (dispatch) => {
111111
return {
112112
logoutUser: (redirectPath) => {
113-
dispatch ({
113+
dispatch({
114114
type: 'USER_LOGGED_OUT',
115-
redirectPath
116-
})
115+
redirectPath,
116+
});
117117
},
118118
loginUser: (user, token, loggedIn, redirectPath) => {
119-
dispatch ({
119+
dispatch({
120120
type: 'USER_LOGGED_IN',
121121
user,
122122
token,
123123
loggedIn,
124-
redirectPath
125-
})
124+
redirectPath,
125+
});
126126
},
127-
dispatch
127+
dispatch,
128128
};
129-
}
129+
};
130130

131131
export default connect(
132132
mapStateToProps,
133-
mapDispatchToProps
133+
mapDispatchToProps,
134134
)(AdminNav);

0 commit comments

Comments
 (0)