Shorter copies

This commit is contained in:
Lim Chee Aun 2023-02-16 19:10:26 +08:00
parent 74a02ee388
commit 4dae1d1576
5 changed files with 7 additions and 16 deletions

View file

@ -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 =

View file

@ -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;

View file

@ -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 {

View file

@ -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;
}

View file

@ -125,9 +125,7 @@ function Settings({ onClose }) {
<MenuItem
disabled={!isCurrent}
onClick={() => {
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);