Skip to content

Commit 7d31245

Browse files
refactor: WSEditor to function expresion
1 parent c6943bc commit 7d31245

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/web/src/views/workspace/components/WSEditor/WSEditor.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const swaggerResourcePickerTransition = React.forwardRef(function swaggerResourc
3030

3131
const drawerWidth = 300;
3232

33-
function WSEditor({ params }: WSEditorProps) {
33+
const WSEditor = ({ params }: WSEditorProps) => {
3434
const { workspaceName } = params;
3535

3636
const dialogManager = useDialogManager();
@@ -295,7 +295,7 @@ function WSEditor({ params }: WSEditorProps) {
295295
)}
296296
</>
297297
);
298-
}
298+
};
299299

300300
const WSEditorWrapper = (props: any) => {
301301
const params = useParams();

0 commit comments

Comments
 (0)