-
- { __(
- 'Edit schedule',
- 'woocommerce'
- ) }
-
-
{ formattedDate }
-
- ),
- onClick() {
- setShowScheduleModal( 'edit' );
- },
- },
- ]
- : [
- {
- title: __( 'Schedule publish', 'woocommerce' ),
- onClick() {
- setShowScheduleModal( 'schedule' );
- },
- },
- ],
- ];
- }
-
- function renderSchedulePublishModal() {
+ function renderPublishButtonMenu(
+ menuProps: Dropdown.RenderProps
+ ): React.ReactElement {
return (
- showScheduleModal && (
-