overleaf/services/web/frontend/stories/editor-switch.stories.js
Domagoj Kriskovic 17452b51d7 [cm6] Add toolbar to Source Mode for Beta users (#13429)
* [cm6] toolbar for source mode

* top:0 for new toolbar

* empty div for extensions

* fix legacy css top pos

* show source toolbar split test

* prettier

* show beta icon in source editor

* dropdown toolbar wip

* fix wrong conflict resolve

* math dropdown, chrome extension fixes

* math dropdown cleanup

* sort en.json

* fix sort en.json

* using isVisual

* getMeta in component, pug update

* using flex grow

* toolbar beta badge

* remove extra whitespace

* has-legacy-toolbar class

* Increase container size

* fix tests

* prettier

* styling fixes, using SplitTestBadge

* only show source toolbar if flag is set

* fix typo

---------

Co-authored-by: Alf Eaton <alf.eaton@overleaf.com>
GitOrigin-RevId: 34b01a9421f4a0d6defc40925c5092901575946e
2023-07-17 10:46:26 +00:00

12 lines
308 B
JavaScript

import EditorSwitch from '../js/features/source-editor/components/editor-switch-legacy'
import { ScopeDecorator } from './decorators/scope'
export default {
title: 'Editor / Switch',
component: EditorSwitch,
decorators: [ScopeDecorator],
}
export const Switcher = () => {
return <EditorSwitch />
}