Skip to content

Commit

Permalink
refactor: pass onModalClose directly to PatternsExplorer in PatternsE…
Browse files Browse the repository at this point in the history
…xplorerModal
  • Loading branch information
yogeshbhutkar committed Jan 31, 2025
1 parent 980821c commit b6b5bce
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,14 @@ function PatternsExplorer( { initialCategory, rootClientId, onModalClose } ) {
);
}

function PatternsExplorerModal( { ...props } ) {
function PatternsExplorerModal( { onModalClose, ...restProps } ) {
return (
<Modal
title={ __( 'Patterns' ) }
onRequestClose={ props.onModalClose }
onRequestClose={ onModalClose }
isFullScreen
>
<PatternsExplorer { ...props } />
<PatternsExplorer onModalClose={ onModalClose } { ...restProps } />
</Modal>
);
}
Expand Down

0 comments on commit b6b5bce

Please sign in to comment.