Skip to content

Commit

Permalink
Fix: typography sx
Browse files Browse the repository at this point in the history
  • Loading branch information
katspaugh committed Jan 3, 2025
1 parent 87b590b commit 3bf5045
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/components/common/Mui/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ export const Box = memo(function Box({
bgcolor,
gridArea,
lineHeight,
sx,
...props
}: BoxProps['sx'] & BoxProps) {
return (
Expand Down Expand Up @@ -99,7 +100,7 @@ export const Box = memo(function Box({
bgcolor,
gridArea,
lineHeight,
...props.sx,
...sx,
},
isUndefined,
)}
Expand Down Expand Up @@ -143,6 +144,7 @@ export const Typography = memo(function Typography({
letterSpacing,
whiteSpace,
width,
sx,
...props
}: TypographyProps['sx'] & TypographyProps) {
return (
Expand Down Expand Up @@ -183,7 +185,7 @@ export const Typography = memo(function Typography({
letterSpacing,
whiteSpace,
width,
...props.sx,
...sx,
},
isUndefined,
)}
Expand Down

0 comments on commit 3bf5045

Please sign in to comment.