-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add stories to see what it looks like
- Loading branch information
1 parent
b82d8a0
commit 73cae47
Showing
2 changed files
with
37 additions
and
4 deletions.
There are no files selected for viewing
33 changes: 33 additions & 0 deletions
33
...rc/scenes/session-recordings/player/inspector/components/ItemPerformanceEvent.stories.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import { Meta } from '@storybook/react' | ||
import { | ||
BodyDisplay, | ||
HeadersDisplay, | ||
ItemPerformanceEvent, | ||
} from 'scenes/session-recordings/player/inspector/components/ItemPerformanceEvent' | ||
|
||
import { mswDecorator } from '~/mocks/browser' | ||
|
||
const meta: Meta<typeof ItemPerformanceEvent> = { | ||
title: 'Components/ItemPerformanceEvent', | ||
component: ItemPerformanceEvent, | ||
decorators: [ | ||
mswDecorator({ | ||
get: {}, | ||
}), | ||
], | ||
} | ||
export default meta | ||
|
||
export function InitialHeadersDisplay(): JSX.Element { | ||
return <HeadersDisplay request={undefined} response={undefined} isInitial={true} /> | ||
} | ||
|
||
export function InitialBodyDisplay(): JSX.Element { | ||
return ( | ||
<BodyDisplay | ||
content={undefined} | ||
headers={undefined} | ||
emptyMessage="Response captured before PostHog was initialized" | ||
/> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters