overleaf/services/web/frontend/stories/settings/beta-program.stories.js
Timothée Alby 3c124667ba Merge pull request #7751 from overleaf/ta-settings-misc-section-split
[SettingsPage] Split Misc Section

GitOrigin-RevId: b6fc60c571dfaf3aec542f3df8dc826a0ba3ab58
2022-04-27 08:05:08 +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,
}