We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d030f6 commit 235919cCopy full SHA for 235919c
src/templates/NavBar/BasicNavBar/BasicNavBar.jsx
@@ -19,8 +19,13 @@ class BasicNavBar extends React.PureComponent {
19
classes: PropTypes.shape({}),
20
title: PropTypes.string,
21
logo: PropTypes.string,
22
+ onIconClick: PropTypes.func,
23
};
24
25
+ handleIconClick = () => {
26
+ this.props.onIconClick();
27
+ }
28
+
29
renderLogo = () => {
30
const { classes, title, logo } = this.props;
31
if (logo) {
@@ -37,12 +42,8 @@ class BasicNavBar extends React.PureComponent {
37
42
);
38
43
39
44
40
- handleIconClick = () => {
41
- this.props.onIconClick();
- }
-
45
render() {
- const { links, onIconClick } = this.props;
46
+ const { links } = this.props;
47
return (
48
<Toolbar>
49
<Hidden smUp>
0 commit comments