Skip to content

Commit

Permalink
Remove useStyles from PinAndCompare
Browse files Browse the repository at this point in the history
  • Loading branch information
kelvinkipruto committed Nov 25, 2024
1 parent 7df809c commit 3ea4648
Showing 1 changed file with 22 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Box, IconButton, SvgIcon } from "@mui/material";
import { Box, IconButton, SvgIcon, alpha } from "@mui/material";
import PropTypes from "prop-types";
import React, { useState } from "react";

Expand Down Expand Up @@ -67,11 +67,30 @@ function PinAndCompare({
const component = open ? PinIconSelected : PinIconDefault;

return (
<Box display="flex" alignItems="flex-end" className={classes.root}>
<Box
display="flex"
alignItems="flex-end"
sx={({ palette, typography }) => ({
padding: `${typography.pxToRem(20)} 0`,
borderBottom: `solid 1px ${palette.divider}`,
})}
>
{!isMobile && (
<IconButton
onClick={handleButtonClick}
className={classes.pinButton}
sx={({ palette, typography }) => ({
maxHeight: typography.pxToRem(40),
maxWidth: typography.pxToRem(40),
overflow: "hidden",
padding: 0,
marginRight: typography.pxToRem(14),
backgroundColor: palette.grey.light,
borderRadius: "0px 2px 2px 0px",
boxShadow: `0px 3px 6px ${alpha(palette.common.black, 0.16)}`, // #00000029
"&:hover,&:focus,&:focus-within": {
backgroundColor: palette.grey.light,
},
})}
size="large"
>
<PinIcon
Expand Down

0 comments on commit 3ea4648

Please sign in to comment.