We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2995737 commit 73169c2Copy full SHA for 73169c2
src/client/contexts/editor.tsx
@@ -1,8 +1,8 @@
1
import type { editor as monaco } from "monaco-editor";
2
import {
3
+ createContext,
4
type FC,
5
type PropsWithChildren,
- createContext,
6
useContext,
7
useRef,
8
} from "react";
@@ -24,7 +24,7 @@ export const useEditor = () => {
24
const editor = useContext(EditorContext);
25
26
if (!editor) {
27
- throw new Error("useEditor must eb used within an EditorProvider");
+ throw new Error("useEditor must be used within an EditorProvider");
28
}
29
30
return editor;
0 commit comments