feat(MoveToShelf): move selected books to shelf
This commit is contained in:
parent
65e9aa2e0b
commit
c03aa30cfd
12 changed files with 331 additions and 69 deletions
frontend/src/shared/components/modals
|
@ -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={{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue