mirror of
https://github.com/kingomarnajjar/flex-template-web.git
synced 2026-07-26 06:47:17 +10:00
Format with prettier
This commit is contained in:
parent
aa30cf7a25
commit
ea3533d0d6
3 changed files with 13 additions and 10 deletions
|
|
@ -28,12 +28,8 @@ Button.propTypes = {
|
|||
|
||||
export default Button;
|
||||
|
||||
|
||||
export const FlatButton = props => (
|
||||
<Button {...props} rootClassName={css.flatButton}/>
|
||||
);
|
||||
export const FlatButton = props => <Button {...props} rootClassName={css.flatButton} />;
|
||||
|
||||
FlatButton.defaultProps = { className: '' };
|
||||
|
||||
FlatButton.propTypes = { className: string };
|
||||
|
||||
|
|
|
|||
|
|
@ -45,7 +45,15 @@ class PageLayout extends Component {
|
|||
}
|
||||
|
||||
render() {
|
||||
const { className, title, children, authInfoError, logoutError, history, location } = this.props;
|
||||
const {
|
||||
className,
|
||||
title,
|
||||
children,
|
||||
authInfoError,
|
||||
logoutError,
|
||||
history,
|
||||
location,
|
||||
} = this.props;
|
||||
const topbarProps = { history, location, togglePageClassNames: this.togglePageClassNames };
|
||||
|
||||
// TODO: use FlashMessages for auth errors
|
||||
|
|
|
|||
|
|
@ -122,9 +122,8 @@ const mapStateToProps = state => {
|
|||
|
||||
const mapDispatchToProps = dispatch => ({ onLogout: historyPush => dispatch(logout(historyPush)) });
|
||||
|
||||
const Topbar = compose(
|
||||
connect(mapStateToProps, mapDispatchToProps),
|
||||
withFlattenedRoutes
|
||||
)(TopbarComponent);
|
||||
const Topbar = compose(connect(mapStateToProps, mapDispatchToProps), withFlattenedRoutes)(
|
||||
TopbarComponent
|
||||
);
|
||||
|
||||
export default Topbar;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue