Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mgubaidullin committed May 8, 2024
1 parent 501582d commit 6334bb1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
8 changes: 1 addition & 7 deletions karavan-app/src/main/webui/src/editor/FileEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,6 @@ interface Props {
projectId: string
}

const languages = new Map<string, string>([
['sh', 'shell'],
['md', 'markdown'],
['properties', 'ini']
])

export function FileEditor(props: Props) {

const [file] = useFileStore((s) => [s.file], shallow)
Expand All @@ -59,7 +53,7 @@ export function FileEditor(props: Props) {
return (
<>
{showDesigner && <DesignerEditor projectId={props.projectId}/>}
{showEditor && <CodeEditor projectId={props.projectId}/>}
{showEditor && <CodeEditor/>}
</>
)
}
3 changes: 0 additions & 3 deletions karavan-app/src/main/webui/src/util/useFormUtil.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
import React from 'react';
import {
Controller,
ControllerFieldState, ControllerRenderProps,
FieldError,
FieldValues,
UseFormReturn,
UseFormStateReturn
} from "react-hook-form";
import {
Flex,
Expand Down

0 comments on commit 6334bb1

Please sign in to comment.