From b51012689cc1d59a78630ec485e2d411cf64ffc3 Mon Sep 17 00:00:00 2001 From: Mohamed Boudra Date: Fri, 24 Apr 2026 05:03:43 +0700 Subject: [PATCH] chore(lint): no-shadow in use-dictation, hoist icons in splash screen --- packages/app/src/hooks/use-dictation.ts | 4 +- .../app/src/screens/startup-splash-screen.tsx | 41 ++++++++++--------- 2 files changed, 23 insertions(+), 22 deletions(-) diff --git a/packages/app/src/hooks/use-dictation.ts b/packages/app/src/hooks/use-dictation.ts index eff44f045..df9b48066 100644 --- a/packages/app/src/hooks/use-dictation.ts +++ b/packages/app/src/hooks/use-dictation.ts @@ -155,8 +155,8 @@ export function useDictation(options: UseDictationOptions): UseDictationResult { if (!isRecordingRef.current) { return; } - void startNewStream("reconnect").catch((error) => { - reportError(error, "Failed to restart dictation stream after reconnect"); + void startNewStream("reconnect").catch((err) => { + reportError(err, "Failed to restart dictation stream after reconnect"); }); }); }, [client, reportError, startNewStream]); diff --git a/packages/app/src/screens/startup-splash-screen.tsx b/packages/app/src/screens/startup-splash-screen.tsx index 6ffdd5a05..bf59c32cf 100644 --- a/packages/app/src/screens/startup-splash-screen.tsx +++ b/packages/app/src/screens/startup-splash-screen.tsx @@ -266,6 +266,23 @@ export function StartupSplashScreen({ bootstrapState }: StartupSplashScreenProps void Clipboard.setStringAsync(payload); }, [daemonLogs?.logPath, daemonLogs?.contents, logsText]); + const copyIcon = useMemo( + () => , + [theme.colors.foreground], + ); + const warningIcon = useMemo( + () => , + [theme.colors.foreground], + ); + const bookIcon = useMemo( + () => , + [theme.colors.foreground], + ); + const retryIcon = useMemo( + () => , + [theme.colors.palette.white], + ); + if (isSimpleSplash) { return ( @@ -336,32 +353,16 @@ export function StartupSplashScreen({ bootstrapState }: StartupSplashScreenProps - - - -