Skip to content

Commit

Permalink
Fixing Bugs & Responsiveness
Browse files Browse the repository at this point in the history
Fixed show book and updated the delete book component to be responsive
  • Loading branch information
riya-rjha authored Dec 18, 2023
2 parents df6a646 + 12ae56f commit 09137b3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Frontend/src/Pages/DeleteBook.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ const DeleteBook = () => {
<Spinner />
) :
(
<div className="w-[45%] flex items-center justify-center m-auto flex-col p-25">
<h2 className="text-3xl text-green-800 p-10">
<div className="max-w-[650px] flex items-center justify-center m-auto flex-col p-5 gap-6">
<h2 className="text-[25px] text-green-800 text-center mt-10">
Are you sure you want to delete this book?
</h2>
<button className=" text-1xl-white bg-red-100 outline-none border-0 p-4 mb-10 font-bold rounded-xl w-[90%]" onClick={handleDelete}>
<button className=" text-xl-white bg-red-100 hover:bg-red-200 transition-all outline-none border-2 border-red-700 px-10 py-4 mx-2 mb-10 font-bold rounded-xl" onClick={handleDelete}>
Yes, Delete it!
</button>
</div>
Expand Down
2 changes: 1 addition & 1 deletion Frontend/src/Pages/ShowBook.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const ShowBook = () => {

useEffect(() => {
try {
setIsLoading(false);
setIsLoading(true);
axios.get(`https://book-store-snzt.onrender.com/books/${id}`)
.then(response => {
setBooks(response.data);
Expand Down

0 comments on commit 09137b3

Please sign in to comment.