date selection

This commit is contained in:
jackiettran
2025-07-18 00:31:23 -04:00
parent 1dbe821e70
commit f289022b5d
9 changed files with 852 additions and 253 deletions

View File

@@ -18,6 +18,9 @@ const ItemDetail: React.FC = () => {
useEffect(() => {
fetchItem();
}, [id]);
useEffect(() => {
if (user) {
checkIfAlreadyRenting();
}
@@ -207,7 +210,7 @@ const ItemDetail: React.FC = () => {
<ItemReviews itemId={item.id} />
<div className="d-flex gap-2">
<div className="d-flex gap-2 mb-5">
{isOwner ? (
<button className="btn btn-primary" onClick={handleEdit}>
Edit Listing