diff --git a/LibraryTrackingApp/src/backend/Core/LibraryTrackingApp.Domain/Entities/Library/Shelf.cs b/LibraryTrackingApp/src/backend/Core/LibraryTrackingApp.Domain/Entities/Library/Shelf.cs index 7f61cc2..2bb574f 100644 --- a/LibraryTrackingApp/src/backend/Core/LibraryTrackingApp.Domain/Entities/Library/Shelf.cs +++ b/LibraryTrackingApp/src/backend/Core/LibraryTrackingApp.Domain/Entities/Library/Shelf.cs @@ -1,7 +1,5 @@ namespace LibraryTrackingApp.Domain.Entities.Library; - -//bunlar bir sonraki güncellemede veritabanına migrate edilcektir. raf ve kitap bölmesi dataları public class Shelf : BaseEntity, IAuditable { public Guid Id { get; set; } diff --git a/LibraryTrackingApp/src/frontend/components/AudioBookForm.jsx b/LibraryTrackingApp/src/frontend/components/AudioBookForm.jsx new file mode 100644 index 0000000..9f2c37f --- /dev/null +++ b/LibraryTrackingApp/src/frontend/components/AudioBookForm.jsx @@ -0,0 +1,118 @@ +import { useState } from "react"; +import { + Box, + FormControl, + FormLabel, + Input, + Table, + TableCaption, + Tbody, + Textarea, + Th, + Thead, + Tr, +} from "@chakra-ui/react"; +import UploadForm from "./UploadForm"; + +const AudioBookForm = ({ onUpload }) => { + const [title, setTitle] = useState(""); + const [author, setAuthor] = useState(""); + const [narrator, setNarrator] = useState(""); + const [description, setDescription] = useState(""); + const [audioFile, setAudioFile] = useState(null); + const [audioFiles, setAudioFiles] = useState([]); + + const handleUpload = (file) => { + // ayarlanacak.. + }; + const handleDelete = (id) => { + setAudioFiles(eBooks.filter((audioFile) => audioFile.id !== id)); + }; + return ( + <> + + Başlık + setTitle(e.target.value)} + /> + + + Yazar + setAuthor(e.target.value)} + /> + + + Anlatan + setNarrator(e.target.value)} + /> + + + Açıklama +