From 4970ecadb86d33c3267e9c16e87592ab8641fce6 Mon Sep 17 00:00:00 2001 From: theborakompanioni Date: Mon, 22 Apr 2024 13:41:24 +0200 Subject: [PATCH] chore(alert): heading and paragraph for connection error alert --- src/components/App.tsx | 50 ++++++++++++++++------------ src/i18n/locales/en/translation.json | 2 +- 2 files changed, 30 insertions(+), 22 deletions(-) diff --git a/src/components/App.tsx b/src/components/App.tsx index cb963fb6..1edbd5e6 100644 --- a/src/components/App.tsx +++ b/src/components/App.tsx @@ -87,6 +87,8 @@ export default function App() { [reloadCurrentWalletInfo], ) + debugger + const router = createBrowserRouter( createRoutesFromElements( - {t('app.alert_no_connection', { connectionError: sessionConnectionError.message })}.{' '} - {!sessionConnectionError.response?.ok && sessionConnectionError.response?.url && ( - - {sessionConnectionError.response.url} - - ), - 2: ( - - the docs - - ), - }} - /> +
+ {t('app.alert_no_connection', { connectionError: sessionConnectionError.message })} +
+ {!sessionConnectionError.response?.ok && ( + <> +

+ + the docs + + ), + }} + /> +

+
+                        {sessionConnectionError.response.status} {sessionConnectionError.response.statusText} 
+                        {sessionConnectionError.response.url}
+                      
+ )} } diff --git a/src/i18n/locales/en/translation.json b/src/i18n/locales/en/translation.json index 4b035bdd..8ddf45d3 100644 --- a/src/i18n/locales/en/translation.json +++ b/src/i18n/locales/en/translation.json @@ -32,7 +32,7 @@ }, "app": { "alert_no_connection": "No connection to backend: {{ connectionError }}", - "alert_no_connection_details": "Unable to access <1>this URL. Please confirm that the backend is running and see <2>the docs for more information.", + "alert_no_connection_details": "Please confirm that the backend is running and <1>see the docs for more information.", "alert_rescan_in_progress": "Rescanning in progress..." }, "navbar": {