From 55ccfba00653ed67ff0a7aa3578fd8bad405f761 Mon Sep 17 00:00:00 2001 From: krokodilka Date: Fri, 12 Aug 2022 05:02:15 +0300 Subject: [PATCH] =?UTF-8?q?=D0=92=D1=8B=D1=81=D1=82=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D1=8B=20=D1=82=D0=B8=D0=BF=D1=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/create/createQuestion.tsx | 307 +++++++++++----------------------- src/create/questionTypes.tsx | 4 +- src/create/settings.tsx | 15 +- src/create/types.tsx | 2 +- 4 files changed, 101 insertions(+), 227 deletions(-) diff --git a/src/create/createQuestion.tsx b/src/create/createQuestion.tsx index bf3d3b62..93fe0950 100644 --- a/src/create/createQuestion.tsx +++ b/src/create/createQuestion.tsx @@ -9,12 +9,6 @@ import WorkSpace from "./workSpace"; import Header from "./header"; import { saveCondition, getCondition } from "./lsBacking"; import type {ElementsOfObject} from "./questionTypes" -//Значения, собираемые для отправки на бэк -interface Values { - title: string; - children: string; - description: string; -} const types = [ {desc:"текст", value:"text"}, @@ -25,19 +19,6 @@ const types = [ {desc: "описание", value: "description"}, {desc:"ничего", value:"none"}, ] -export const TextField = (props: any) => { - - const [field, meta, helpers] = useField(props); - - return ( - <> -