|
@@ -11,17 +11,9 @@ import { useRef } from "react";
|
|
|
import {
|
|
import {
|
|
|
IProjectCreateRequest,
|
|
IProjectCreateRequest,
|
|
|
IProjectResponse,
|
|
IProjectResponse,
|
|
|
- ITaskCreateRequest,
|
|
|
|
|
- ITaskResponse,
|
|
|
|
|
TProjectType,
|
|
TProjectType,
|
|
|
} from "../api/task";
|
|
} from "../api/task";
|
|
|
|
|
|
|
|
-interface IFormData {
|
|
|
|
|
- title: string;
|
|
|
|
|
- lang: string;
|
|
|
|
|
- studio: string;
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
interface IWidgetCourseCreate {
|
|
interface IWidgetCourseCreate {
|
|
|
studio?: string;
|
|
studio?: string;
|
|
|
type?: TProjectType;
|
|
type?: TProjectType;
|
|
@@ -29,7 +21,7 @@ interface IWidgetCourseCreate {
|
|
|
}
|
|
}
|
|
|
const TaskCreate = ({
|
|
const TaskCreate = ({
|
|
|
studio = "",
|
|
studio = "",
|
|
|
- type = "normal",
|
|
|
|
|
|
|
+ type = "workflow",
|
|
|
onCreate,
|
|
onCreate,
|
|
|
}: IWidgetCourseCreate) => {
|
|
}: IWidgetCourseCreate) => {
|
|
|
const intl = useIntl();
|
|
const intl = useIntl();
|