feat: init new modal

This commit is contained in:
swve 2023-04-08 15:11:24 +02:00
parent f4c239d848
commit ca5110e4f7
7 changed files with 283 additions and 26 deletions

View file

@ -20,13 +20,13 @@ function NewChapterModal({ submitChapter , closeModal }: any) {
};
return (
<Modal>
<h1>Add New Chapter <button onClick={closeModal}>X</button></h1>
<div>
<button onClick={closeModal}>X</button>
<input type="text" onChange={handleChapterNameChange} placeholder="Chapter Name" /> <br />
<input type="text" onChange={handleChapterDescriptionChange} placeholder="Chapter Description" />
<br />
<button onClick={handleSubmit}>Add Chapter</button>
</Modal>
</div>
);
}