visuddhinanda пре 3 година
родитељ
комит
7e98f57f8d
1 измењених фајлова са 7 додато и 12 уклоњено
  1. 7 12
      dashboard/src/components/studio/dict/DictCreate.tsx

+ 7 - 12
dashboard/src/components/studio/dict/DictCreate.tsx

@@ -1,18 +1,12 @@
-import {
-	ProForm,
-	ProFormText,
-	ProFormTextArea,
-} from "@ant-design/pro-components";
-import { Layout } from "antd";
+import { ProForm } from "@ant-design/pro-components";
+
 import { useIntl } from "react-intl";
 import { useIntl } from "react-intl";
 import { message } from "antd";
 import { message } from "antd";
 
 
-import SelectLang from "../SelectLang";
-import SelectCase from "../SelectCase";
-import Confidene from "../Confidence";
 import DictEditInner from "./DictEditInner";
 import DictEditInner from "./DictEditInner";
 
 
-interface IFormData {
+export interface IDictFormData {
+	id: number;
 	word: string;
 	word: string;
 	type: string;
 	type: string;
 	grammar: string;
 	grammar: string;
@@ -22,6 +16,7 @@ interface IFormData {
 	factors: string;
 	factors: string;
 	factormeaning: string;
 	factormeaning: string;
 	lang: string;
 	lang: string;
+	confidence: number;
 }
 }
 
 
 type IWidgetDictCreate = {
 type IWidgetDictCreate = {
@@ -41,8 +36,8 @@ const Widget = (prop: IWidgetDictCreate) => {
 	*/
 	*/
 	return (
 	return (
 		<>
 		<>
-			<ProForm<IFormData>
-				onFinish={async (values: IFormData) => {
+			<ProForm<IDictFormData>
+				onFinish={async (values: IDictFormData) => {
 					// TODO
 					// TODO
 					console.log(values);
 					console.log(values);
 					message.success(
 					message.success(