feat(MoveToShelf): move selected books to shelf

This commit is contained in:
0ry5 2024-09-30 21:32:24 +02:00
commit c03aa30cfd
12 changed files with 331 additions and 69 deletions
frontend/src/shared/components/modals

View file

@ -6,6 +6,7 @@ import { DeleteBookModalProps } from "./types";
export const DeleteBookModal = ({
uuid,
title,
open,
onClose,
}: Omit<DeleteBookModalProps, "type">): React.JSX.Element => {
@ -26,7 +27,7 @@ export const DeleteBookModal = ({
<Modal show={open} onHide={onClose} centered>
<ModalHeader
onClose={onClose}
title={"Move to Shelf"}
title={`Delete Book "${title}"`}
icon={<ImBin size={50} className='ml-0 mr-auto' />}
/>
<Modal.Body
@ -34,6 +35,7 @@ export const DeleteBookModal = ({
borderTop: "none",
}}
>
Do you really want to delete this book?
<div className='d-flex mx-auto mb-auto mt-2 w-100'>
<Button
style={{