From 8b22e65646fb97a5d80d7fdfe442bfde1d81ed9a Mon Sep 17 00:00:00 2001 From: Nicola Benaglia Date: Mon, 12 May 2025 08:19:05 +0200 Subject: [PATCH] Add auth action --- src/App.tsx | 10 ++- src/ExtStates/NotAuthenticated.tsx | 6 +- src/Wallets.tsx | 26 +++--- src/components/Auth/DownloadWallet.tsx | 6 +- src/components/Home/NewUsersCTA.tsx | 2 +- src/i18n/locales/en/auth.json | 17 ++-- src/i18n/locales/en/core.json | 6 +- src/utils/queue/queue.ts | 110 +++++++++++++------------ 8 files changed, 98 insertions(+), 85 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index d24a4ae..07b915c 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -2513,7 +2513,7 @@ function App() { setExtstate('create-wallet'); }} > - {t('auth:create_account', { postProcess: 'capitalize' })} + {t('auth:action.create_account', { postProcess: 'capitalize' })} )} @@ -2610,7 +2610,7 @@ function App() { fontWeight: 600, }} > - {t('auth:authenticate', { postProcess: 'capitalize' })} + {t('auth:action.authenticate', { postProcess: 'capitalize' })} @@ -2662,7 +2662,7 @@ function App() { - {t('auth:authenticate', { postProcess: 'capitalize' })} + {t('auth:action.authenticate', { postProcess: 'capitalize' })} {walletToBeDecryptedError} @@ -2930,7 +2930,9 @@ function App() { - {t('auth:create_account', { postProcess: 'capitalize' })} + {t('auth:action.create_account', { + postProcess: 'capitalize', + })} {walletToBeDownloadedError} diff --git a/src/ExtStates/NotAuthenticated.tsx b/src/ExtStates/NotAuthenticated.tsx index 693cdf0..2a6b090 100644 --- a/src/ExtStates/NotAuthenticated.tsx +++ b/src/ExtStates/NotAuthenticated.tsx @@ -572,7 +572,7 @@ export const NotAuthenticated = ({ }, }} > - {t('auth:create_account', { postProcess: 'capitalize' })} + {t('auth:action.create_account', { postProcess: 'capitalize' })} @@ -953,7 +953,9 @@ export const NotAuthenticated = ({ setCustomNodeToSaveIndex(null); }} > - {t('auth:return_to_list', { postProcess: 'capitalize' })} + {t('auth:action.return_to_list', { + postProcess: 'capitalize', + })}