2
0
mirror of https://github.com/inventree/InvenTree.git synced 2026-04-25 04:23:33 +00:00

Boundary updates (#11794)

* Boundary updates

* Add error code
This commit is contained in:
Oliver
2026-04-24 10:52:17 +10:00
committed by GitHub
parent e43d619d69
commit 03508cd15b
4 changed files with 22 additions and 3 deletions
+6 -3
View File
@@ -1,5 +1,5 @@
import { t } from '@lingui/core/macro';
import { Alert } from '@mantine/core';
import { Alert, Stack } from '@mantine/core';
import { ErrorBoundary, type FallbackRender } from '@sentry/react';
import { IconExclamationCircle } from '@tabler/icons-react';
import { type ReactNode, useCallback } from 'react';
@@ -11,9 +11,12 @@ export function DefaultFallback({
<Alert
color='red'
icon={<IconExclamationCircle />}
title={`${t`Error rendering component`}: ${title}`}
title={`INVE-E17: ${t`Error rendering component`}: ${title}`}
>
{t`An error occurred while rendering this component. Refer to the console for more information.`}
<Stack gap='xs'>
{t`An error occurred while rendering this component. Refer to the console for more information.`}
{t`Try reloading the page, or contact your administrator if the problem persists.`}
</Stack>
</Alert>
);
}