mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-04-10 11:13:48 +02:00
Update editor styles
This commit is contained in:
@@ -1,11 +1,12 @@
|
||||
import useCodeMirror from '../../hooks/useCodemirror';
|
||||
import useCodeMirror, { EditorLanguage } from '../../hooks/useCodemirror';
|
||||
import './Editor.css';
|
||||
|
||||
interface Props {
|
||||
language: EditorLanguage;
|
||||
value: string;
|
||||
}
|
||||
|
||||
export default function Editor(props: Props) {
|
||||
const { ref } = useCodeMirror({ value: props.value });
|
||||
const { ref } = useCodeMirror({ value: props.value, language: props.language });
|
||||
return <div ref={ref} className="m-0 text-sm overflow-hidden" />;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user