aboutsummaryrefslogtreecommitdiff
path: root/vnext/src/components/NavigationIcon.js
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2019-02-21 00:20:21 +0300
committerGravatar Vitaly Takmazov2023-01-13 10:37:54 +0300
commitd01d3369318b79f4f38820ef8c48344a6b082aff (patch)
tree3ec47c71215ff8e514646c5bb695cbc5df286403 /vnext/src/components/NavigationIcon.js
parente39818079a05cdd7cfc4744e972ce87105e1ff87 (diff)
More pure components
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
};