Skip to content

Commit

Permalink
Rename hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
getdave committed Jun 19, 2023
1 parent f5c8811 commit edb424f
Showing 1 changed file with 10 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ export default function SidebarNavigationScreenNavigationMenu() {
const { handleSave, handleDelete, handleDuplicate } =
useNavigationMenuHandlers();

const _handleDelete = () => handleDelete( navigationMenu );
const _handleSave = () => handleSave( navigationMenu );
const _handleDuplicate = () => handleDuplicate( navigationMenu );

if ( isLoading ) {
return (
<SidebarNavigationScreenWrapper
Expand All @@ -85,9 +89,9 @@ export default function SidebarNavigationScreenNavigationMenu() {
actions={
<ScreenNavigationMoreMenu
menuTitle={ decodeEntities( menuTitle ) }
onDelete={ () => handleDelete( navigationMenu ) }
onSave={ () => handleSave( navigationMenu ) }
onDuplicate={ () => handleDuplicate( navigationMenu ) }
onDelete={ _handleDelete }
onSave={ _handleSave }
onDuplicate={ _handleDuplicate }
/>
}
title={ decodeEntities( menuTitle ) }
Expand All @@ -99,9 +103,9 @@ export default function SidebarNavigationScreenNavigationMenu() {
return (
<SingleNavigationMenu
navigationMenu={ navigationMenu }
handleDelete={ () => handleDelete( navigationMenu ) }
handleSave={ () => handleSave( navigationMenu ) }
handleDuplicate={ () => handleDuplicate( navigationMenu ) }
handleDelete={ _handleDelete }
handleSave={ _handleSave }
handleDuplicate={ _handleDuplicate }
/>
);
}

0 comments on commit edb424f

Please sign in to comment.