浏览代码

fix json editor error

AykutSarac 3 年之前
父节点
当前提交
5f1887f795
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/pages/editor/JsonEditor/index.tsx

+ 1 - 1
src/pages/editor/JsonEditor/index.tsx

@@ -2,7 +2,7 @@ import React from "react";
 import styled from "styled-components";
 import JSONInput from "react-json-editor-ajrm";
 import { useLocalStorage } from "usehooks-ts";
-const locale = require("react-json-editor-ajrm/locale/en");
+import locale from "react-json-editor-ajrm/locale/en";
 
 const StyledJSONInput = styled(JSONInput)`
   margin-top: 10px;