0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-28 18:26:15 +01:00
posthog/.storybook/preview.js

26 lines
619 B
JavaScript
Raw Normal View History

import React from 'react'
import { getContext } from 'kea'
import { loadPostHogJS } from '~/loadPostHogJS'
import '~/styles'
import { withApi } from './ApiSelector/withApi'
loadPostHogJS()
window.getReduxState = () => getContext().store.getState()
export const parameters = {
actions: { argTypesRegex: '^on[A-Z].*' },
controls: {
matchers: {
color: /(background|color)$/i,
date: /Date$/,
},
},
options: {
// opt in to panels in your story by overridding `export const parameters`
showPanel: false,
},
}
export const decorators = [withApi]