0

Commit updated Storybook stories

This commit is contained in:
Owncast 2023-03-15 04:41:00 +00:00
parent f86c141840
commit 371db04b16

View File

@ -82,17 +82,16 @@ The `ComponentError` component is a pre-built error state that can be used to di
import { ErrorBoundary } from 'react-error-boundary';
<ErrorBoundary
// eslint-disable-next-line react/no-unstable-nested-components
fallbackRender={({ error: e, resetErrorBoundary }) => (
<ComponentError
componentName="BrowserNotifyModal"
message={e.message}
retryFunction={resetErrorBoundary}
/>
)}
>
<YourFunctionality/>
</ErrorBoundary
fallbackRender={({ error, resetErrorBoundary }) => (
<ComponentError
componentName="DesktopContent"
message={error.message}
retryFunction={resetErrorBoundary}
/>
)}
>
<YourComponent />
</ErrorBoundary>
```
## Storybook