From 932e66f33078b749eeb2768d287d2f28b891018a Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Tue, 15 Aug 2023 22:40:58 +0800 Subject: [PATCH] Update copy for import/export --- src/components/shortcuts-settings.jsx | 27 +++++++++++++-------------- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/src/components/shortcuts-settings.jsx b/src/components/shortcuts-settings.jsx index 586c773d..e93f1437 100644 --- a/src/components/shortcuts-settings.jsx +++ b/src/components/shortcuts-settings.jsx @@ -725,8 +725,7 @@ function ImportExport({ shortcuts, onClose }) { )}

- Import/Export{' '} - Shortcuts settings + Import/Export Shortcuts

@@ -739,7 +738,7 @@ function ImportExport({ shortcuts, onClose }) { { setImportShortcutStr(e.target.value); @@ -796,7 +795,7 @@ function ImportExport({ shortcuts, onClose }) { ))}

- * Exists in current settings + * Exists in current shortcuts
⚠️ List may not work if it's from a different account. @@ -813,10 +812,10 @@ function ImportExport({ shortcuts, onClose }) { {hasCurrentSettings && ( <> - Only shortcuts that don’t exist in current settings will + Only shortcuts that don’t exist in current shortcuts will be appended. } @@ -851,8 +850,8 @@ function ImportExport({ shortcuts, onClose }) { states.shortcuts = newShortcuts; showToast( exceededLimit - ? `Shortcuts settings imported. Exceeded max ${SHORTCUTS_LIMIT}, so the rest are not imported.` - : 'Shortcuts settings imported', + ? `Shortcuts imported. Exceeded max ${SHORTCUTS_LIMIT}, so the rest are not imported.` + : 'Shortcuts imported', ); onClose?.(); }} @@ -870,13 +869,13 @@ function ImportExport({ shortcuts, onClose }) { { states.shortcuts = parsedImportShortcutStr; - showToast('Shortcuts settings imported'); + showToast('Shortcuts imported'); onClose?.(); }} > @@ -906,10 +905,10 @@ function ImportExport({ shortcuts, onClose }) { // Copy url to clipboard try { navigator.clipboard.writeText(e.target.value); - showToast('Shortcuts settings copied'); + showToast('Shortcuts copied'); } catch (e) { console.error(e); - showToast('Unable to copy shortcuts settings'); + showToast('Unable to copy shortcuts'); } }} /> @@ -959,7 +958,7 @@ function ImportExport({ shortcuts, onClose }) {

- Raw Shortcuts settings JSON + Raw Shortcuts JSON