2021-08-25 10:38:33 +02:00
|
|
|
import React from 'react'
|
|
|
|
import { getContext } from 'kea'
|
|
|
|
import { loadPostHogJS } from '~/loadPostHogJS'
|
|
|
|
import '~/styles'
|
2021-09-11 00:34:15 +02:00
|
|
|
import { withApi } from './ApiSelector/withApi'
|
2021-08-25 10:38:33 +02:00
|
|
|
|
|
|
|
loadPostHogJS()
|
|
|
|
window.getReduxState = () => getContext().store.getState()
|
|
|
|
|
|
|
|
export const parameters = {
|
|
|
|
actions: { argTypesRegex: '^on[A-Z].*' },
|
|
|
|
controls: {
|
|
|
|
matchers: {
|
|
|
|
color: /(background|color)$/i,
|
|
|
|
date: /Date$/,
|
|
|
|
},
|
|
|
|
},
|
2021-09-07 14:00:44 +02:00
|
|
|
|
|
|
|
options: {
|
|
|
|
// opt in to panels in your story by overridding `export const parameters`
|
|
|
|
showPanel: false,
|
|
|
|
},
|
2021-08-25 10:38:33 +02:00
|
|
|
}
|
|
|
|
|
2021-09-11 00:34:15 +02:00
|
|
|
export const decorators = [withApi]
|