From 6194205ccd368706dd5b339d43d9728dd0363cf6 Mon Sep 17 00:00:00 2001 From: Ankit Dash <100564488+helios2003@users.noreply.github.com> Date: Wed, 3 Apr 2024 01:20:41 +0530 Subject: [PATCH] fix linting errors (#1039) Co-authored-by: Khuda Dad Nomani <32505158+KhudaDad414@users.noreply.github.com> --- .../src/components/VisualJsonSchemaEditor.stories.tsx | 3 ++- apps/studio-next/src/components/Editor/Editor.tsx | 4 +--- 2 files changed, 3 insertions(+), 4 deletions(-) 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);