overleaf/services/web/frontend/stories/editor-switch.stories.js
Timothée Alby 6e704d2919 Merge pull request #7837 from overleaf/ta-storybook-context-fix
Storybook Fixes

GitOrigin-RevId: b2f80cec162d3d78d41a8864f9021f58370db37e
2022-05-17 08:03:16 +00:00

16 lines
375 B
JavaScript

import EditorSwitch from '../js/features/source-editor/components/editor-switch'
import { withContextRoot } from './utils/with-context-root'
export default {
title: 'Editor / Switch',
component: EditorSwitch,
}
export const Switcher = () => {
return withContextRoot(<EditorSwitch />, {
editor: {
richText: false,
newSourceEditor: false,
},
})
}