2022-04-26 11:35:35 -04:00
|
|
|
import BetaProgramSection from '../../js/features/settings/components/beta-program-section'
|
|
|
|
import { UserProvider } from '../../js/shared/context/user-context'
|
2024-10-10 03:26:18 -04:00
|
|
|
import { bsVersionDecorator } from '../../../.storybook/utils/with-bootstrap-switcher'
|
2022-04-26 11:35:35 -04:00
|
|
|
|
|
|
|
export const SectionNotEnrolled = args => {
|
|
|
|
window.metaAttributesCache.set('ol-user', { betaProgram: false })
|
|
|
|
|
|
|
|
return (
|
|
|
|
<UserProvider>
|
|
|
|
<BetaProgramSection {...args} />
|
|
|
|
</UserProvider>
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
|
|
|
export const SectionEnrolled = args => {
|
|
|
|
window.metaAttributesCache.set('ol-user', { betaProgram: true })
|
|
|
|
|
|
|
|
return (
|
|
|
|
<UserProvider>
|
|
|
|
<BetaProgramSection {...args} />
|
|
|
|
</UserProvider>
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
|
|
|
export default {
|
|
|
|
title: 'Account Settings / Beta Program',
|
|
|
|
component: BetaProgramSection,
|
2024-10-10 03:26:18 -04:00
|
|
|
argTypes: {
|
|
|
|
...bsVersionDecorator.argTypes,
|
|
|
|
},
|
2022-04-26 11:35:35 -04:00
|
|
|
}
|