diff --git a/src/components/account.jsx b/src/components/account.jsx index 60090d84..a1ce0148 100644 --- a/src/components/account.jsx +++ b/src/components/account.jsx @@ -311,8 +311,8 @@ function Account({ account, instance: propInstance, onClose }) { if (following || requested) { const yes = confirm( requested - ? 'Are you sure that you want to withdraw follow request?' - : 'Are you sure that you want to unfollow this account?', + ? 'Withdraw follow request?' + : `Unfollow @${info.acct || info.username}?`, ); if (yes) { newRelationship = diff --git a/src/components/compose.jsx b/src/components/compose.jsx index 1ce921c1..c0a2bb2f 100644 --- a/src/components/compose.jsx +++ b/src/components/compose.jsx @@ -264,8 +264,7 @@ function Compose({ const formRef = useRef(); - const beforeUnloadCopy = - 'You have unsaved changes. Are you sure you want to discard this post?'; + const beforeUnloadCopy = 'You have unsaved changes. Discard this post?'; const canClose = () => { const { value, dataset } = textareaRef.current; diff --git a/src/components/drafts.jsx b/src/components/drafts.jsx index 49f8a64b..28c7c35d 100644 --- a/src/components/drafts.jsx +++ b/src/components/drafts.jsx @@ -103,9 +103,7 @@ function Drafts() { onClick={() => { (async () => { try { - const yes = confirm( - 'Are you sure you want to delete this draft?', - ); + const yes = confirm('Delete this draft?'); if (yes) { await db.drafts.del(key); reload(); @@ -161,9 +159,7 @@ function Drafts() { disabled={uiState === 'loading'} onClick={() => { (async () => { - const yes = confirm( - 'Are you sure you want to delete all drafts?', - ); + const yes = confirm('Delete all drafts?'); if (yes) { setUIState('loading'); try { diff --git a/src/components/status.jsx b/src/components/status.jsx index fb914dd2..d3c3db14 100644 --- a/src/components/status.jsx +++ b/src/components/status.jsx @@ -531,9 +531,7 @@ function Status({ } try { if (!reblogged) { - const yes = confirm( - 'Are you sure that you want to boost this post?', - ); + const yes = confirm('Boost this post?'); if (!yes) { return; } diff --git a/src/pages/settings.jsx b/src/pages/settings.jsx index 27c07d14..ac70c987 100644 --- a/src/pages/settings.jsx +++ b/src/pages/settings.jsx @@ -125,9 +125,7 @@ function Settings({ onClose }) { { - const yes = confirm( - 'Are you sure you want to log out?', - ); + const yes = confirm('Log out?'); if (!yes) return; accounts.splice(i, 1); store.local.setJSON('accounts', accounts);