diff options
author | 2019-07-26 13:22:00 +0300 | |
---|---|---|
committer | 2023-01-13 10:37:55 +0300 | |
commit | f707d3d524d8d16e2bb780764f029d85fc57ecc0 (patch) | |
tree | 1580074a665bd16c9744b5749c2a777700c5ae73 /vnext/src/ui/NavigationIcon.js | |
parent | 6016b0888e77497e15384f1cd024eb42672129a4 (diff) |
prop-types -> jsdoc
Diffstat (limited to 'vnext/src/ui/NavigationIcon.js')
-rw-r--r-- | vnext/src/ui/NavigationIcon.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/vnext/src/ui/NavigationIcon.js b/vnext/src/ui/NavigationIcon.js index 0a22ac57..9594d61f 100644 --- a/vnext/src/ui/NavigationIcon.js +++ b/vnext/src/ui/NavigationIcon.js @@ -5,6 +5,15 @@ import Icon from './Icon'; import './NavigationIcon.css'; +/** + * @typedef {Object} NavigationIconProps + * @property {(event: React.MouseEvent) => void} onToggle + */ + + /** + * Navigation icon + * @param {NavigationIconProps} props + */ function NavigationIcon(props) { return ( <div id="navicon" className="mobile" onClick={props.onToggle}> |