Explorar o código

fix json editor error

AykutSarac %!s(int64=3) %!d(string=hai) anos
pai
achega
5f1887f795
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;