0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-22 08:40:03 +01:00
posthog/.storybook/app-context.ts
Marius Andra a6faa54dff
feat(storybook): cleanup volume 2 (#9049)
* storybook filters scenes

* event list preview

* rename some stories

* support ctx.f() in mocks

* redo story

* rename some

* all insights card and list views

* wrap LineGraph in an error boundary

* fix charts not loading on storybook

* new trends graphs

* new insight stories

* separate to clean
2022-03-16 09:14:16 +01:00

25 lines
683 B
TypeScript

import { OrganizationMembershipLevel } from 'lib/constants'
import { AppContext } from '~/types'
export const storybookAppContext: AppContext = {
// @ts-ignore
current_team: {
effective_membership_level: OrganizationMembershipLevel.Owner,
completed_snippet_onboarding: true,
id: 1,
},
current_user: {
// @ts-ignore
organization: {
membership_level: OrganizationMembershipLevel.Owner,
available_features: [],
},
},
preflight: {
// @ts-ignore
instance_preferences: { disable_paid_fs: false },
},
default_event_name: '$pageview',
persisted_feature_flags: [],
}