mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-03-20 00:23:58 +01:00
Send request body
This commit is contained in:
@@ -4,9 +4,14 @@ import './Editor.css';
|
||||
interface Props {
|
||||
contentType: string;
|
||||
value: string;
|
||||
onChange?: (value: string) => void;
|
||||
}
|
||||
|
||||
export default function Editor(props: Props) {
|
||||
const { ref } = useCodeMirror({ value: props.value, contentType: props.contentType });
|
||||
const { ref } = useCodeMirror({
|
||||
value: props.value,
|
||||
contentType: props.contentType,
|
||||
onChange: props.onChange,
|
||||
});
|
||||
return <div ref={ref} className="cm-wrapper" />;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user