overleaf/services/web/frontend/stories/settings/beta-program.stories.jsx
Jakob Ackermann 9daa8f5d98 Merge pull request #15040 from overleaf/jpa-js-to-jsx
[web] rename all the JSX files to .jsx/.tsx

GitOrigin-RevId: 82056ae47e017523722cf258dcc83c8a925a28f7
2023-09-29 08:04:29 +00:00

27 lines
671 B
JavaScript

import BetaProgramSection from '../../js/features/settings/components/beta-program-section'
import { UserProvider } from '../../js/shared/context/user-context'
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,
}