From e47ba711f4ff6c84bca9c41586c07729cc664dd4 Mon Sep 17 00:00:00 2001 From: PalmDevs Date: Tue, 4 Aug 2026 23:16:37 +0700 Subject: [PATCH] feat(plugins/error-boundary): improve ErrorBoundary screen --- .../components/ErrorBoundaryScreen.tsx | 47 +++++++++++++------ 1 file changed, 33 insertions(+), 14 deletions(-) diff --git a/src/plugins/start/error-boundary/components/ErrorBoundaryScreen.tsx b/src/plugins/start/error-boundary/components/ErrorBoundaryScreen.tsx index 794ea21..4aa009a 100644 --- a/src/plugins/start/error-boundary/components/ErrorBoundaryScreen.tsx +++ b/src/plugins/start/error-boundary/components/ErrorBoundaryScreen.tsx @@ -1,16 +1,19 @@ +import { getAssetIdByName } from '@revenge-mod/assets' import { styles } from '@revenge-mod/components/_' import { Tokens } from '@revenge-mod/discord/common/tokens' import { Design } from '@revenge-mod/discord/design' import { ClientInfoModule } from '@revenge-mod/discord/native' import { Clipboard } from '@revenge-mod/externals/react-native-clipboard' import { ReactNativeSafeAreaContext } from '@revenge-mod/externals/react-native-safe-area-context' +import { reloadApp } from '@revenge-mod/modules/native/app' +import { requestNextBootDefaultsOnly } from '@revenge-mod/plugins/_' import { getErrorStack } from '@revenge-mod/utils/error' import { ScrollView, StyleSheet, View } from 'react-native' import { FullVersion } from '~/constants' import { getRNVersion } from '~plugins/start/settings/definitions/shared' import type { ComponentProps } from 'react' -const { createStyles, Button, Card, Stack, Text } = Design +const { createStyles, Button, Card, IconButton, Stack, Text } = Design const useErrorBoundaryStyles = createStyles({ view: { @@ -35,6 +38,9 @@ const additionalStyles = StyleSheet.create({ fontWeight: 'bold', marginBottom: 8, }, + actions: { + flexShrink: 0, + }, }) interface RenderError extends Error { @@ -118,19 +124,31 @@ export default function ErrorBoundaryScreen({ )} - +