Skip to content

Commit

Permalink
fix: No overload matches this call (#209)
Browse files Browse the repository at this point in the history
  • Loading branch information
braianj authored Dec 31, 2024
1 parent 34c660a commit 00630ee
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
6 changes: 3 additions & 3 deletions src/components/AvatarFace/AvatarFace.styled.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import styled from "@emotion/styled"
import { Avatar as AvatarMui } from "@mui/material"
import { AvatarFaceProps } from "./AvatarFace.types"

const AvatarContainer = styled("div")((
props: Pick<AvatarFaceProps, "inline">
) => {
const AvatarContainer = styled("div", {
shouldForwardProp: (prop) => prop !== "inline",
})<Pick<AvatarFaceProps, "inline">>((props) => {
return {
width: "inherit",
height: "inherit",
Expand Down
4 changes: 3 additions & 1 deletion src/components/Notifications/NotificationItemImage.styled.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ interface ImageContainerProps {
backgroundColor?: string
}

const ImageContainer = styled("div")((props: ImageContainerProps) => {
const ImageContainer = styled("div", {
shouldForwardProp: (prop) => prop !== "backgroundColor",
})<ImageContainerProps>((props) => {
const { backgroundColor } = props
return {
borderRadius: "100%",
Expand Down
14 changes: 6 additions & 8 deletions src/components/Notifications/NotificationsFeed.styled.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,12 @@ const LoadingContainer = styled("div")({
alignItems: "center",
})

const NotificationFeedModal = styled(Modal)(() => {
return {
alignItems: "flex-end",
"& .MuiPaper-root.MuiPaper-elevation.MuiPaper-rounded": {
borderTopLeftRadius: "16px",
borderTopRightRadius: "16px",
},
}
const NotificationFeedModal = styled(Modal)({
alignItems: "flex-end",
"& .MuiPaper-root.MuiPaper-elevation.MuiPaper-rounded": {
borderTopLeftRadius: "16px",
borderTopRightRadius: "16px",
},
})

const NotificationFeedModalContainer = styled(Box)({
Expand Down

0 comments on commit 00630ee

Please sign in to comment.