diff --git a/front/components/Pages/CourseEdit/NewChapter.tsx b/front/components/Pages/CourseEdit/NewChapter.tsx index 11cb2927..8e03201c 100644 --- a/front/components/Pages/CourseEdit/NewChapter.tsx +++ b/front/components/Pages/CourseEdit/NewChapter.tsx @@ -1,6 +1,9 @@ +import FormLayout, { Flex, FormField, Input, Textarea, FormLabel, ButtonBlack } from "@components/UI/Form/Form"; +import { FormMessage } from "@radix-ui/react-form"; +import * as Form from '@radix-ui/react-form'; import React, { useState } from "react"; -function NewChapterModal({ submitChapter , closeModal }: any) { +function NewChapterModal({ submitChapter, closeModal }: any) { const [chapterName, setChapterName] = useState(""); const [chapterDescription, setChapterDescription] = useState(""); @@ -15,17 +18,37 @@ function NewChapterModal({ submitChapter , closeModal }: any) { const handleSubmit = async (e: any) => { e.preventDefault(); console.log({ chapterName, chapterDescription }); - submitChapter({ name : chapterName, description : chapterDescription , activities : [] }); + submitChapter({ name: chapterName, description: chapterDescription, activities: [] }); }; return ( -
- -
- -
- -
+ + + + + Chapter name + Please provide a chapter name + + + + + + + + Chapter description + Please provide a chapter description + + +