diff --git a/apps/design-system/src/components/VisualJsonSchemaEditor.stories.tsx b/apps/design-system/src/components/VisualJsonSchemaEditor.stories.tsx index 394eeabae..da87e3ae4 100644 --- a/apps/design-system/src/components/VisualJsonSchemaEditor.stories.tsx +++ b/apps/design-system/src/components/VisualJsonSchemaEditor.stories.tsx @@ -1,7 +1,7 @@ import React, { useState } from 'react'; import { VisualEditor, CodeEditor, Examples } from '@asyncapi/studio-ui'; -export default { +const VisualEditorStory = { component: VisualEditor, parameters: { layout: 'fullscreen', @@ -282,3 +282,4 @@ export const nestead_array = () => ( /> ); +export default VisualEditorStory \ No newline at end of file diff --git a/apps/studio-next/src/components/Editor/Editor.tsx b/apps/studio-next/src/components/Editor/Editor.tsx index c48ba7b52..1caa69ee0 100644 --- a/apps/studio-next/src/components/Editor/Editor.tsx +++ b/apps/studio-next/src/components/Editor/Editor.tsx @@ -3,9 +3,7 @@ import { useFilesState } from '@/state/files.state'; import { CodeMirror } from './CodeMirror'; -interface IEditorProps {} - -export const Editor = (props: IEditorProps) => { +export const Editor = () => { const { language, content } = useFilesState(state => state.files['asyncapi']); const handleUpdateFile = useFilesState(state => state.updateFile);