overleaf/services/web/frontend/stories/editor-switch.stories.js
Alf Eaton 199ab985a0 Merge pull request #7223 from overleaf/ta-storybook-organise
Reorganise Storybook Stories

GitOrigin-RevId: 91014f49f84c645f87091724f03a007b731a8ad5
2022-04-05 12:16:53 +00:00

19 lines
441 B
JavaScript

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