diff --git a/mobile/src/components/MobileRootErrorBoundary.tsx b/mobile/src/components/MobileRootErrorBoundary.tsx index 32228b034b2..1018234799a 100644 --- a/mobile/src/components/MobileRootErrorBoundary.tsx +++ b/mobile/src/components/MobileRootErrorBoundary.tsx @@ -1,5 +1,5 @@ import { Component, Fragment, type ErrorInfo, type ReactNode } from 'react' -import { AlertTriangle, Bug, House, RefreshCw } from 'lucide-react-native' +import { AlertTriangle, House, RefreshCw } from 'lucide-react-native' import { Pressable, StyleSheet, Text, View } from 'react-native' import { colors, radii, spacing, typography } from '../theme/mobile-theme' import { @@ -108,7 +108,7 @@ function MobileRootErrorFallback({ style={styles.secondaryButton} onPress={onReport} > - + Report error diff --git a/mobile/src/components/mobile-root-error-boundary.test.tsx b/mobile/src/components/mobile-root-error-boundary.test.tsx index bd2be3f7e77..58c91433eef 100644 --- a/mobile/src/components/mobile-root-error-boundary.test.tsx +++ b/mobile/src/components/mobile-root-error-boundary.test.tsx @@ -24,7 +24,6 @@ vi.mock('react-native', () => ({ })) vi.mock('lucide-react-native', () => ({ AlertTriangle: 'AlertTriangle', - Bug: 'Bug', House: 'House', RefreshCw: 'RefreshCw' })) @@ -126,6 +125,7 @@ describe('mobile root error boundary', () => { expect.objectContaining({ backgroundColor: colors.bgRaised }) ) expect(buttons[1]?.findByType('House').props.color).toBe(colors.textPrimary) + expect(buttons[2]?.findByType('AlertTriangle').props.color).toBe(colors.textPrimary) act(() => buttons[2]?.props.onPress()) expect(mocks.shareDiagnostics).toHaveBeenCalledOnce()