Add more comments for clarification purposes

MAILPOET-6365
This commit is contained in:
Oluwaseun Olorunsola
2025-01-09 14:40:13 +01:00
committed by Oluwaseun Olorunsola
parent cea59c8e38
commit a16f20b93d
4 changed files with 6 additions and 7 deletions

View File

@ -45,9 +45,7 @@ export default function EditTemplateBlocksNotification( { contentRef } ) {
return;
}
setIsDialogOpen( true );
recordEventOnce( 'edit_template_blocks_notification_opened', {
templateId,
} );
recordEventOnce( 'edit_template_blocks_notification_opened' );
};
const canvas = contentRef.current;

View File

@ -24,7 +24,7 @@ export function ScreenColors(): JSX.Element {
const handleOnChange = ( newStyles ) => {
updateStyles( newStyles );
recordEvent( 'styles_sidebar_screen_colors_styles_updated' );
recordEvent( 'styles_sidebar_screen_colors_styles_updated' ); // We can't log the updated color here because the onChange function returns the complete object.
};
return (