Skip to content

Commit

Permalink
fix: Don't forward showArrow prop to MUI button (#2743)
Browse files Browse the repository at this point in the history
  • Loading branch information
DafyddLlyr authored Feb 2, 2024
1 parent 2a1fa6a commit 4b94faf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion editor.planx.uk/src/ui/public/FeedbackOption.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ interface Props {

const Root = styled(Button, {
shouldForwardProp: (prop) =>
!["fullWidth", "format", "Icon"].includes(prop.toString()),
!["fullWidth", "format", "Icon", "showArrow"].includes(prop.toString()),
})<Props>(({ theme, showArrow, format }) => ({
backgroundColor: theme.palette.common.white,
color: theme.palette.text.primary,
Expand Down

0 comments on commit 4b94faf

Please sign in to comment.