From fe6e875b4cafca96a1629fc8bcd0bebfe50a0a96 Mon Sep 17 00:00:00 2001 From: Cali93 Date: Mon, 9 May 2022 23:45:06 +0200 Subject: [PATCH] hot fix for CodeEditor --- packages/dapp/package.json | 2 +- .../components/projects/CreateProjectForm.tsx | 23 +++++++++++------ .../components/projects/EditProjectForm.tsx | 21 ++++++++++------ .../projects/pathways/PathwayForm.tsx | 23 +++++++++++------ .../components/projects/quests/QuestForm.tsx | 23 +++++++++++------ .../pages/projects/create-project/index.tsx | 2 +- packages/server/package.json | 2 +- yarn.lock | 25 ++++++++----------- 8 files changed, 73 insertions(+), 48 deletions(-) diff --git a/packages/dapp/package.json b/packages/dapp/package.json index 4dd1a6b9..e99ea346 100644 --- a/packages/dapp/package.json +++ b/packages/dapp/package.json @@ -88,7 +88,7 @@ "react-icons": "^4.3.1", "react-markdown": "^7.0.0", "react-parallax-tilt": "^1.5.73", - "siwe": "^2.0.1", + "siwe": "^1.1.6", "states-cities-db": "^1.4.1", "tiny-invariant": "^1.2.0", "uint8arrays": "^3.0.0", diff --git a/packages/dapp/src/components/projects/CreateProjectForm.tsx b/packages/dapp/src/components/projects/CreateProjectForm.tsx index 2e41accf..1265dd18 100644 --- a/packages/dapp/src/components/projects/CreateProjectForm.tsx +++ b/packages/dapp/src/components/projects/CreateProjectForm.tsx @@ -14,10 +14,11 @@ import { InputGroup, InputLeftAddon, Text, + Textarea, } from "@chakra-ui/react"; import CodeEditorPreview from "components/custom/CodeEditorPreview"; -import useCustomColor from "core/hooks/useCustomColor"; -import dynamic from "next/dynamic"; +// import useCustomColor from "core/hooks/useCustomColor"; +// import dynamic from "next/dynamic"; import { useEffect, useState } from "react"; import { useFormContext } from "react-hook-form"; @@ -29,12 +30,12 @@ import ControlledSelect from "../Inputs/ControlledSelect"; import LogoDropzone from "./LogoDropzone"; -const CodeEditor = dynamic(() => import("@uiw/react-textarea-code-editor"), { - ssr: false, -}); +// const CodeEditor = dynamic(() => import("@uiw/react-textarea-code-editor"), { +// ssr: false, +// }); const CreateProjectForm = () => { const [code, setCode] = useState(); - const { codeEditorScheme } = useCustomColor(); + // const { codeEditorScheme } = useCustomColor(); const { data, loading, error } = useQuery(ALL_TAGS_QUERY); const { register, @@ -106,7 +107,8 @@ const CreateProjectForm = () => { Markdown Description - { }} className={codeEditorScheme} padding={15} + /> + */} +