From f0642833bfe5564fe3a46953eb6e54a1a6801edb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dafydd=20Ll=C5=B7r=20Pearson?= Date: Fri, 27 Oct 2023 08:20:41 +0100 Subject: [PATCH] fix: React errors on content component (#2350) --- editor.planx.uk/src/@planx/components/Content/Public.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/editor.planx.uk/src/@planx/components/Content/Public.tsx b/editor.planx.uk/src/@planx/components/Content/Public.tsx index fd53d2112f..ef490d50ad 100644 --- a/editor.planx.uk/src/@planx/components/Content/Public.tsx +++ b/editor.planx.uk/src/@planx/components/Content/Public.tsx @@ -12,7 +12,7 @@ export type Props = PublicProps; const Content = styled(Box, { shouldForwardProp: (prop) => prop !== "color", -})(({ theme, color }) => ({ +})<{ color?: string }>(({ theme, color }) => ({ padding: theme.spacing(2), backgroundColor: color, color: @@ -28,7 +28,7 @@ const Content = styled(Box, { const ContentComponent: React.FC = (props) => { return ( - +