AykutSarac пре 3 година
родитељ
комит
bb159247f7
2 измењених фајлова са 2 додато и 2 уклоњено
  1. 1 1
      src/pages/editor/JsonEditor/index.tsx
  2. 1 1
      src/pages/editor/index.tsx

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

@@ -35,7 +35,7 @@ export const defaultValue = [
   },
 ];
 
-const JsonEditor = () => {
+const JsonEditor: React.FC = () => {
   const [json, setJson] = useLocalStorage("json", JSON.stringify(defaultValue));
 
   React.useEffect(() => {

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

@@ -27,7 +27,7 @@ const StyledEditor = styled.div`
   overflow: hidden;
 `;
 
-const Editor = () => {
+const Editor: React.FC = () => {
   return (
     <StyledEditorWrapper>
       <StyledTools>tools</StyledTools>