Skip to content

Commit

Permalink
chore: clarify exact expiration time in help text
Browse files Browse the repository at this point in the history
  • Loading branch information
dkoo committed Nov 19, 2024
1 parent f0e691f commit 343e740
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/editor/ExpirationPanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ const ExpirationPanel = ( {
new Date( expiration_date ).toLocaleDateString()
),
{
id: 'newspack-popups__expired',
isDismissible: false,
}
).then( ( { notice } ) => {
Expand All @@ -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.
Expand All @@ -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'
) }
/>
Expand Down

0 comments on commit 343e740

Please sign in to comment.