Skip to content

Commit 45b27c2

Browse files
authored
refactor: convert HeaderMenu to functional component (#19128)
* refactor: convert HeaderMenu to a functional component * fix: update prop type given composeEventHandlers updates
1 parent c2d564a commit 45b27c2

File tree

3 files changed

+246
-252
lines changed

3 files changed

+246
-252
lines changed

packages/react/__tests__/__snapshots__/PublicAPI-test.js.snap

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4249,6 +4249,39 @@ Map {
42494249
},
42504250
"HeaderMenu" => Object {
42514251
"$$typeof": Symbol(react.forward_ref),
4252+
"propTypes": Object {
4253+
"aria-label": [Function],
4254+
"aria-labelledby": [Function],
4255+
"className": Object {
4256+
"type": "string",
4257+
},
4258+
"focusRef": Object {
4259+
"type": "func",
4260+
},
4261+
"isActive": Object {
4262+
"type": "bool",
4263+
},
4264+
"isCurrentPage": [Function],
4265+
"menuLinkName": Object {
4266+
"isRequired": true,
4267+
"type": "string",
4268+
},
4269+
"onBlur": Object {
4270+
"type": "func",
4271+
},
4272+
"onClick": Object {
4273+
"type": "func",
4274+
},
4275+
"onKeyDown": Object {
4276+
"type": "func",
4277+
},
4278+
"renderMenuContent": Object {
4279+
"type": "func",
4280+
},
4281+
"tabIndex": Object {
4282+
"type": "number",
4283+
},
4284+
},
42524285
"render": [Function],
42534286
},
42544287
"HeaderMenuButton" => Object {

0 commit comments

Comments
 (0)