diff --git a/src/OnboardingSPA/steps/SiteGen/Editor/Header/center.js b/src/OnboardingSPA/steps/SiteGen/Editor/Header/center.js index c6fe6106e..19882414a 100644 --- a/src/OnboardingSPA/steps/SiteGen/Editor/Header/center.js +++ b/src/OnboardingSPA/steps/SiteGen/Editor/Header/center.js @@ -13,26 +13,31 @@ const DropDownMenu = memo( onRenameItemSelect, onViewAll, isLargeViewport, + onToggle, } ) => { + const onMenuItemClick = ( action ) => () => { + action(); + onToggle(); + }; return ( { ! isLargeViewport && ( <> - + { __( 'Regenerate', 'wp-module-onboarding' ) } - +
{ __( 'Customize', 'wp-module-onboarding' ) }
) } - + { __( 'Rename', 'wp-module-onboarding' ) } - + { __( 'View All', 'wp-module-onboarding' ) }
@@ -126,13 +131,14 @@ const TitleContent = memo( /> ) } - renderContent={ () => ( + renderContent={ ( { onToggle } ) => ( ) } />