diff --git a/src/components/modules/dashboard/writing/MetaKeyValueEditSection.tsx b/src/components/modules/dashboard/writing/MetaKeyValueEditSection.tsx index 99450e3f6c..0edf91fb56 100644 --- a/src/components/modules/dashboard/writing/MetaKeyValueEditSection.tsx +++ b/src/components/modules/dashboard/writing/MetaKeyValueEditSection.tsx @@ -1,12 +1,10 @@ import { Label } from '@radix-ui/react-label' -import { useMemo, useRef, useState } from 'react' +import { useMemo, useRef } from 'react' import type { FC } from 'react' import { StyledButton } from '~/components/ui/button' -import { - BaseCodeHighlighter, - HighLighter, -} from '~/components/ui/code-highlighter' +import { CodeEditor } from '~/components/ui/code-editor' +import { HighLighter } from '~/components/ui/code-highlighter' import { useModalStack } from '~/components/ui/modal' import { useEventCallback } from '~/hooks/common/use-event-callback' import { toast } from '~/lib/toast' @@ -80,7 +78,6 @@ const EditorModal: FC<{ onChange: (value: object) => void }> = ({ value, onChange, dismiss }) => { const currentEditValueRef = useRef(value) - const [highlighterValue, setHighlighterValue] = useState(value) const handleSave = () => { if (!isValidJSONString(currentEditValueRef.current)) { @@ -93,27 +90,19 @@ const EditorModal: FC<{ } return ( - <> -
-
-