Skip to content

Commit

Permalink
Change landlord underlined text to button style
Browse files Browse the repository at this point in the history
  • Loading branch information
CasperL1218 committed Feb 21, 2024
1 parent 491ab0e commit c731710
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions frontend/src/components/Review/Review.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -189,22 +189,25 @@ const ReviewComponent = ({
return (
showLabel && (
<>
<Grid style={{ fontWeight: 'bold', marginRight: '5px' }}>
{apt.length > 0 ? 'Property: ' : 'Landlord: '}
</Grid>
<Link
{...{
to: apt.length > 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 : ''}
<Button>
<Grid style={{ fontWeight: 'bold', marginRight: '5px' }}>
{apt.length > 0 ? 'Property: ' : 'Landlord: '}
</Grid>
{apt.length > 0 ? apt[0].name : landlordData ? landlordData.name : ''}
</Button>
</Link>
</>
)
Expand Down

0 comments on commit c731710

Please sign in to comment.