From 6b67191d36ccfc08d266241631b60a2b679acd86 Mon Sep 17 00:00:00 2001 From: CasperL1218 Date: Wed, 21 Feb 2024 20:37:52 -0500 Subject: [PATCH 1/4] landlord redirect button --- frontend/src/components/Review/Review.tsx | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/frontend/src/components/Review/Review.tsx b/frontend/src/components/Review/Review.tsx index 796cd619..5e9b6785 100644 --- a/frontend/src/components/Review/Review.tsx +++ b/frontend/src/components/Review/Review.tsx @@ -189,22 +189,25 @@ const ReviewComponent = ({ return ( showLabel && ( <> - - {apt.length > 0 ? 'Property: ' : 'Landlord: '} - 0 ? `/apartment/${review.aptId}` : `/landlord/${review.landlordId}`, style: { - color: 'black', - textDecoration: 'underline', - paddingBottom: '3px', + textDecoration: 'none', + display: 'inline-block', + width: '100%', + paddingLeft: '3px', }, component: RouterLink, }} onClick={handleLinkClick} > - {apt.length > 0 ? apt[0].name : landlordData ? landlordData.name : ''} + ) From d5ef79e54543d23d28e495f46b9f95c122c677fa Mon Sep 17 00:00:00 2001 From: CasperL1218 Date: Wed, 21 Feb 2024 23:07:30 -0500 Subject: [PATCH 2/4] Remove styling --- frontend/src/components/Review/Review.tsx | 6 ------ 1 file changed, 6 deletions(-) diff --git a/frontend/src/components/Review/Review.tsx b/frontend/src/components/Review/Review.tsx index 5e9b6785..ac0c0f75 100644 --- a/frontend/src/components/Review/Review.tsx +++ b/frontend/src/components/Review/Review.tsx @@ -192,12 +192,6 @@ const ReviewComponent = ({ 0 ? `/apartment/${review.aptId}` : `/landlord/${review.landlordId}`, - style: { - textDecoration: 'none', - display: 'inline-block', - width: '100%', - paddingLeft: '3px', - }, component: RouterLink, }} onClick={handleLinkClick} From 9809dbcdbd2845ccbf1bb6a96d68c179b8078366 Mon Sep 17 00:00:00 2001 From: CasperL1218 Date: Sun, 3 Mar 2024 15:24:00 -0500 Subject: [PATCH 3/4] Add documentation for property/landlord label --- frontend/src/components/Review/Review.tsx | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/frontend/src/components/Review/Review.tsx b/frontend/src/components/Review/Review.tsx index ac0c0f75..11b69ade 100644 --- a/frontend/src/components/Review/Review.tsx +++ b/frontend/src/components/Review/Review.tsx @@ -185,6 +185,17 @@ const ReviewComponent = ({ }); }, [review.landlordId, landlordNotFound]); + /** + * `propertyLandLordLabel - A button redirecting to property/landlord page + * + * @remarks + * This button component is displayed on review cards (seen in bookmarks, + * profile, landlord page) to redirect users to the property/landlord page + * corresponding to that specific review. + * + * @returns A button/label that links to the property/landlord page + * corresponding to that specific review. + */ const propertyLandlordLabel = () => { return ( showLabel && ( From 912ffd37e635bddc5660982eae327f4811acd30d Mon Sep 17 00:00:00 2001 From: CasperL1218 Date: Mon, 4 Mar 2024 17:07:18 -0500 Subject: [PATCH 4/4] Change capitalized text to normal text and increase font size. --- frontend/src/components/Review/Review.tsx | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/frontend/src/components/Review/Review.tsx b/frontend/src/components/Review/Review.tsx index 11b69ade..24988536 100644 --- a/frontend/src/components/Review/Review.tsx +++ b/frontend/src/components/Review/Review.tsx @@ -207,11 +207,15 @@ const ReviewComponent = ({ }} onClick={handleLinkClick} > -