0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-25 11:17:50 +01:00
posthog/.storybook/app-context.ts
Marius Andra 1aca9598f5
feat(calendar): option to show Sunday first (#11722)
* feat(calendar): option to show Sunday first

* add week_start to app context

* support weekStart in LemonCalendar

* use the weekStart from appContext

* run with newer black

* add storybook context
2022-10-19 15:50:54 +00:00

14 lines
493 B
TypeScript

import { AppContext } from '~/types'
import { MOCK_DEFAULT_TEAM } from 'lib/api.mock'
export const getStorybookAppContext = (): AppContext => ({
anonymous: false,
current_team: MOCK_DEFAULT_TEAM,
current_user: undefined as any, // undefined triggers a fetch and lets us mock the data
default_event_name: '$pageview',
persisted_feature_flags: [],
preflight: null as any, // null triggers a fetch and lets us mock the data
switched_team: null,
week_start: 1,
})