Skip to content

Commit 317c953

Browse files
committed
Rename CodeMirror2 to CodeMirror
1 parent 79fcb48 commit 317c953

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed
File renamed without changes.

re_pages/Playground.re

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1486,9 +1486,9 @@ module ControlPanel = {
14861486
};
14871487

14881488
let locMsgToCmError =
1489-
(~kind: CodeMirror2.Error.kind, locMsg: Api.LocMsg.t): CodeMirror2.Error.t => {
1489+
(~kind: CodeMirror.Error.kind, locMsg: Api.LocMsg.t): CodeMirror.Error.t => {
14901490
let {Api.LocMsg.row, column, endColumn, endRow, shortMsg} = locMsg;
1491-
{CodeMirror2.Error.row, column, endColumn, endRow, text: shortMsg, kind};
1491+
{CodeMirror.Error.row, column, endColumn, endRow, text: shortMsg, kind};
14921492
};
14931493

14941494
module OutputPanel = {
@@ -1746,7 +1746,7 @@ let default = () => {
17461746

17471747
let overlayState = React.useState(() => false);
17481748

1749-
let windowWidth = CodeMirror2.useWindowWidth();
1749+
let windowWidth = CodeMirror.useWindowWidth();
17501750

17511751
// The user can focus an error / warning on a specific line & column
17521752
// which is stored in this ref and triggered by hover / click states
@@ -1872,7 +1872,7 @@ let default = () => {
18721872
dispatch=compilerDispatch
18731873
editorCode
18741874
/>
1875-
<CodeMirror2
1875+
<CodeMirror
18761876
className="w-full py-4"
18771877
minHeight="calc(100vh - 10rem)"
18781878
maxHeight="calc(100vh - 10rem)"

0 commit comments

Comments
 (0)