diff --git a/packages/fscomponents/src/components/ImageWithOverlay.tsx b/packages/fscomponents/src/components/ImageWithOverlay.tsx index 98a74070f6..75b7901d28 100644 --- a/packages/fscomponents/src/components/ImageWithOverlay.tsx +++ b/packages/fscomponents/src/components/ImageWithOverlay.tsx @@ -20,7 +20,7 @@ export interface ImageWithOverlayProps { | 'topRight'; } -export const ImageWithOverlay = (props: ImageWithOverlayProps): JSX.Element => { +export const ImageWithOverlay = React.memo((props: ImageWithOverlayProps): JSX.Element => { const { overlay, style, @@ -38,4 +38,4 @@ export const ImageWithOverlay = (props: ImageWithOverlayProps): JSX.Element => { } ); -}; +});