# give/4.18.0/src/Views/Components/AdminDetailsPage/ErrorBoundary/Fallback.tsx

GiveWP – Donation Plugin and Fundraising Platform, version 4.18.0. 23 lines.

- Page: https://pluginprobe.com/plugins/give/4.18.0/code/src/Views/Components/AdminDetailsPage/ErrorBoundary/Fallback.tsx
- Raw: https://pluginprobe.com/plugins/give/4.18.0/raw/src/Views/Components/AdminDetailsPage/ErrorBoundary/Fallback.tsx
- Modified: 2025-06-18T15:01:58+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/give/4.18.0/code/src/Views/Components/AdminDetailsPage/ErrorBoundary/Fallback.tsx#L10-L20`.

```tsx
import {__} from "@wordpress/i18n";
import styles from "./styles.module.scss";

/**
 * @unrestricted
 */
export default function Fallback({error, resetErrorBoundary}) {
    return (
        <div role="alert" className={styles.errorBoundary}>
            <p  className={styles.errorBoundaryParagraph}>
                {__(
                    'An error occurred. The error message is:',
                    'give'
                )}
            </p>
            <pre className={styles.errorBoundaryPre}>{error.message}</pre>
            <button type="button" onClick={resetErrorBoundary} className={styles.errorBoundaryButton}>
                {__('Reload page', 'give')}
            </button>
        </div>
    );
}

```
