From dbbd7ed71375210ef71800eb13ffcf3a37000b4a Mon Sep 17 00:00:00 2001 From: Tushar Sharma Date: Thu, 28 Nov 2024 22:01:15 +0530 Subject: [PATCH] made some ui changes --- frontend/src/pages/ShowBook.jsx | 72 +++++++++++++++++++-------------- 1 file changed, 42 insertions(+), 30 deletions(-) diff --git a/frontend/src/pages/ShowBook.jsx b/frontend/src/pages/ShowBook.jsx index 661b9f23..3bf208d4 100644 --- a/frontend/src/pages/ShowBook.jsx +++ b/frontend/src/pages/ShowBook.jsx @@ -24,39 +24,51 @@ const ShowBook = () => { }, []); return ( -
+
-

Show Book

- {loading ? ( - - ) : ( -
-
- Id - {book._id} +
+

+ Book Details +

+ {loading ? ( +
+
-
- Title - {book.title} + ) : ( +
+
+
+ ID + {book._id} +
+
+ Title + {book.title} +
+
+ Author + {book.author} +
+
+ Publish Year + {book.publishYear} +
+
+ Created At + + {new Date(book.createdAt).toLocaleString()} + +
+
+ Last Updated At + + {new Date(book.updatedAt).toLocaleString()} + +
+
-
- Author - {book.author} -
-
- Publish Year - {book.publishYear} -
-
- Create Time - {new Date(book.createdAt).toString()} -
-
- Last Update Time - {new Date(book.updatedAt).toString()} -
-
- )} + )} +
); };