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()} -
-
- )} + )} +
); };