From b7a5614c95fee3e1d73679ad178d8fb1a005d033 Mon Sep 17 00:00:00 2001 From: Alf Eaton Date: Fri, 18 Mar 2022 10:13:26 +0000 Subject: [PATCH] Add PDF Preview error boundary components to Storybook (#7065) GitOrigin-RevId: cc9ec43040b7c43a70b76e8174e92cee32445162 --- .../pdf-preview-error-boundary.stories.js | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 services/web/frontend/stories/pdf-preview-error-boundary.stories.js diff --git a/services/web/frontend/stories/pdf-preview-error-boundary.stories.js b/services/web/frontend/stories/pdf-preview-error-boundary.stories.js new file mode 100644 index 0000000000..8d2928a257 --- /dev/null +++ b/services/web/frontend/stories/pdf-preview-error-boundary.stories.js @@ -0,0 +1,22 @@ +import ErrorBoundaryFallback from '../js/features/pdf-preview/components/error-boundary-fallback' +import { setupContext } from './fixtures/context' +import { withContextRoot } from './utils/with-context-root' + +export default { + title: 'PDF Preview / Error Boundary', + component: ErrorBoundaryFallback, +} + +setupContext() + +export const PreviewErrorBoundary = () => { + return withContextRoot() +} + +export const PdfErrorBoundary = () => { + return withContextRoot() +} + +export const LogsErrorBoundary = () => { + return withContextRoot() +}