mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
6e704d2919
Storybook Fixes GitOrigin-RevId: b2f80cec162d3d78d41a8864f9021f58370db37e
19 lines
592 B
JavaScript
19 lines
592 B
JavaScript
import ErrorBoundaryFallback from '../js/features/pdf-preview/components/error-boundary-fallback'
|
|
import { withContextRoot } from './utils/with-context-root'
|
|
|
|
export default {
|
|
title: 'Editor / PDF Preview / Error Boundary',
|
|
component: ErrorBoundaryFallback,
|
|
}
|
|
|
|
export const PreviewErrorBoundary = () => {
|
|
return withContextRoot(<ErrorBoundaryFallback type="preview" />)
|
|
}
|
|
|
|
export const PdfErrorBoundary = () => {
|
|
return withContextRoot(<ErrorBoundaryFallback type="pdf" />)
|
|
}
|
|
|
|
export const LogsErrorBoundary = () => {
|
|
return withContextRoot(<ErrorBoundaryFallback type="logs" />)
|
|
}
|