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 ef7c614d44
feat(storybook): cleanup volume 3 (#9052)
* onboarding

* move to utils file

* shuffle various insights around

* web performance

* insight error states

* fix recordings

* sort stories, create readmes, rename to clean

* add instance status api mock

* dashboard

* login

* password reset

* signup

* billing

* toolbar

* mock posthog-js in tests
2022-03-16 17:42:07 +01:00

21 lines
579 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: [],
},
},
default_event_name: '$pageview',
persisted_feature_flags: [],
}