From d2e88ffdc48ee0ad2f0812d8b292a7492eab54b3 Mon Sep 17 00:00:00 2001 From: Faisal Amir Date: Thu, 12 Jun 2025 00:09:19 +0700 Subject: [PATCH] fix: update style cortex dialog (#5245) --- .../dialogs/CortexFailureDialog.tsx | 47 ++++++++++--------- 1 file changed, 25 insertions(+), 22 deletions(-) diff --git a/web-app/src/containers/dialogs/CortexFailureDialog.tsx b/web-app/src/containers/dialogs/CortexFailureDialog.tsx index b14ecf443..bdd2aff2e 100644 --- a/web-app/src/containers/dialogs/CortexFailureDialog.tsx +++ b/web-app/src/containers/dialogs/CortexFailureDialog.tsx @@ -18,13 +18,10 @@ export function CortexFailureDialog() { useEffect(() => { let unlisten: (() => void) | undefined const setupListener = async () => { - unlisten = await listen( - 'cortex_max_restarts_reached', - (event) => { - console.log('Cortex max restarts reached event received:', event) - setShowDialog(true) - } - ) + unlisten = await listen('cortex_max_restarts_reached', (event) => { + console.log('Cortex max restarts reached event received:', event) + setShowDialog(true) + }) } setupListener() @@ -55,34 +52,40 @@ export function CortexFailureDialog() { - {t('cortexFailureDialog.title', 'Local AI Engine Issue')} + + {t('cortexFailureDialog.title', 'Local AI Engine Issue')} + - {t('cortexFailureDialog.description', 'The local AI engine (Cortex) failed to start after multiple attempts. This might prevent some features from working correctly.')} + {t( + 'cortexFailureDialog.description', + 'The local AI engine (Cortex) failed to start after multiple attempts. This might prevent some features from working correctly.' + )} - + - - ) -} \ No newline at end of file +}