Skip to content

Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.

Update app/shared/text-editor/example-text-editor.stories.tsx

Oleg Isonen15c4272488c2
diff --git a/app/shared/text-editor/example-text-editor.stories.tsx b/app/shared/text-editor/example-text-editor.stories.tsx
index 01dbe938a5..4b4e51f3dd 100644
--- a/app/shared/text-editor/example-text-editor.stories.tsx
+++ b/app/shared/text-editor/example-text-editor.stories.tsx
@@ -21,11 +21,7 @@ export default {
component: ExampleTextEditor,
} as ComponentMeta<typeof ExampleTextEditor>;
-const Template: ComponentStory<typeof ExampleTextEditor> = (args) => {
- return <ExampleTextEditor {...args} />;
-};
-
-export const TextEditor = Template.bind({});
+export const TextEditor = (args) => <ExampleTextEditor {...args} />
TextEditor.args = {
onChange,
};