aboutsummaryrefslogtreecommitdiff
path: root/vnext/src/components/NavigationIcon.js
diff options
context:
space:
mode:
Diffstat (limited to 'vnext/src/components/NavigationIcon.js')
-rw-r--r--vnext/src/components/NavigationIcon.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/vnext/src/components/NavigationIcon.js b/vnext/src/components/NavigationIcon.js
index 5c5415ef..0a22ac57 100644
--- a/vnext/src/components/NavigationIcon.js
+++ b/vnext/src/components/NavigationIcon.js
@@ -5,7 +5,7 @@ import Icon from './Icon';
import './NavigationIcon.css';
-export default function NavigationIcon(props) {
+function NavigationIcon(props) {
return (
<div id="navicon" className="mobile" onClick={props.onToggle}>
<Icon name="ei-navicon" size="s"/>
@@ -13,6 +13,8 @@ export default function NavigationIcon(props) {
);
}
+export default React.memo(NavigationIcon);
+
NavigationIcon.propTypes = {
onToggle: PropTypes.func.isRequired
};