Skip to content

Commit

Permalink
remove overrided style in NetflixIconButton
Browse files Browse the repository at this point in the history
  • Loading branch information
Endo committed May 9, 2023
1 parent 14bc615 commit a645027
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
7 changes: 0 additions & 7 deletions src/components/NetflixIconButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,13 @@ const NetflixIconButton = forwardRef<HTMLButtonElement, IconButtonProps>(
return (
<IconButton
sx={{
p: 0,
color: "white",
borderRadius: "50%",
borderWidth: "2px",
borderStyle: "solid",
borderColor: "grey.700",
"&:hover, &:focus": {
borderColor: "grey.200",
},
width: { xs: 36, sm: 40 },
height: { xs: 36, sm: 40 },
// "& > svg": {
// fontSize: { xs: 36, sm: 40 },
// },
...sx,
}}
{...others}
Expand Down
2 changes: 1 addition & 1 deletion src/components/SimilarVideoCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export default function SimilarVideoCard({ video }: SimilarVideoCardProps) {
</Stack>
</Box>
<Box flexGrow={1} />
<NetflixIconButton size="large">
<NetflixIconButton>
<AddIcon />
</NetflixIconButton>
</Stack>
Expand Down
7 changes: 5 additions & 2 deletions src/components/VideoCardPortal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,11 @@ export default function VideoCardModal({
<CardContent>
<Stack spacing={1}>
<Stack direction="row" spacing={1}>
<NetflixIconButton onClick={() => navigate(`/${MAIN_PATH.watch}`)}>
<PlayCircleIcon />
<NetflixIconButton
sx={{ p: 0 }}
onClick={() => navigate(`/${MAIN_PATH.watch}`)}
>
<PlayCircleIcon sx={{ width: 40, height: 40 }} />
</NetflixIconButton>
<NetflixIconButton>
<AddIcon />
Expand Down

0 comments on commit a645027

Please sign in to comment.