From 343e740e7283b4c21d3826e48aac3f3cbeabfde9 Mon Sep 17 00:00:00 2001 From: dkoo Date: Tue, 19 Nov 2024 13:04:19 -0700 Subject: [PATCH] chore: clarify exact expiration time in help text --- src/editor/ExpirationPanel.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/editor/ExpirationPanel.js b/src/editor/ExpirationPanel.js index 4330c484..3e8f0f58 100644 --- a/src/editor/ExpirationPanel.js +++ b/src/editor/ExpirationPanel.js @@ -35,6 +35,7 @@ const ExpirationPanel = ( { new Date( expiration_date ).toLocaleDateString() ), { + id: 'newspack-popups__expired', isDismissible: false, } ).then( ( { notice } ) => { @@ -51,7 +52,10 @@ const ExpirationPanel = ( { __( 'This prompt has been published. The expiration date has been removed.', 'newspack-plugin' - ) + ), + { + id: 'newspack-popups__expiration-date-removed', + } ); // This is just for quicked feedback, the actual meta field deletion will // happen on the backend. @@ -74,7 +78,7 @@ const ExpirationPanel = ( { onMetaFieldChange( { expiration_date: expiration_date ? null : defaultExpirationDate } ); } } help={ __( - 'If set, the prompt will be automatically unpublished after this date.', + 'If set, the prompt will be automatically unpublished at midnight on this date.', 'newspack-popups' ) } />