Skip to content

Commit

Permalink
removed unneccessary styling code
Browse files Browse the repository at this point in the history
  • Loading branch information
kea-roy committed May 3, 2024
1 parent 236c6e1 commit aa57808
Showing 1 changed file with 3 additions and 17 deletions.
20 changes: 3 additions & 17 deletions frontend/src/components/ApartmentCard/ApartmentCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,17 +38,9 @@ const useStyles = makeStyles({
borderRadius: '10px',
background: colors.red5,
},
imgStyle: {
borderRadius: '12%',
margin: '17px',
},
aptNameTxt: {
fontWeight: 800,
},
marginTxt: {
paddingBottom: '-10px',
paddingLeft: '20px',
},
reviewNum: {
fontWeight: 700,
marginLeft: '10px',
Expand All @@ -61,13 +53,6 @@ const useStyles = makeStyles({
overflow: 'hidden',
textOverflow: 'ellipsis',
},
imgMobile: {
borderRadius: '10px',
marginTop: '13px',
},
imgContainerMobile: {
borderRadius: '10px',
},
landlordButton: {
textTransform: 'none',
'&.Mui-disabled': {
Expand Down Expand Up @@ -116,7 +101,8 @@ const ApartmentCard = ({
const [isHovered, setIsHovered] = useState(false);
const [savedIsHovered, setSavedIsHovered] = useState(false);

const { aptNameTxt, root, redHighlight, reviewNum, textStyle, landlordButton } = useStyles();
const { aptNameTxt, root, redHighlight, reviewNum, textStyle, landlordButton, saveRibbonIcon } =
useStyles();

useEffect(() => {
const checkIfSaved = async () => {
Expand Down Expand Up @@ -278,7 +264,7 @@ const ApartmentCard = ({
onClick={handleSaveToggle}
onMouseEnter={() => setSavedIsHovered(true)}
onMouseLeave={() => setSavedIsHovered(false)}
className="saveRibbonIcon"
className={saveRibbonIcon}
>
<img
src={savedIsHovered ? saved : isSaved ? saved : unsaved}
Expand Down

0 comments on commit aa57808

Please sign in to comment.