File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -16,8 +16,8 @@ const { render } = testingLibrary;
1616describe ( 'useContextMenu' , function ( ) {
1717 const TestMenu : React . FC < ContextMenuWrapperProps > = ( { menu } ) => (
1818 < div data-testid = "test-menu" >
19- { menu . itemGroups . flatMap ( ( group , groupIdx ) =>
20- group . items . map ( ( item , idx ) => (
19+ { menu . itemGroups . flatMap ( ( items , groupIdx ) =>
20+ items . map ( ( item , idx ) => (
2121 < div
2222 key = { `${ groupIdx } -${ idx } ` }
2323 data-testid = { `menu-item-${ item . label } ` }
@@ -41,7 +41,7 @@ describe('useContextMenu', function () {
4141 onRegister,
4242 onAction,
4343 } : {
44- onRegister ?: ( ref : any ) => void ;
44+ onRegister ?: ( ref : unknown ) => void ;
4545 onAction ?: ( id : number ) => void ;
4646 } ) => {
4747 const contextMenu = useContextMenu ( ) ;
You can’t perform that action at this time.
0 commit comments