From 59e5c7ca252f978f43170b5eace5b716514fba6c Mon Sep 17 00:00:00 2001 From: imran Date: Sat, 11 Nov 2023 00:01:34 +0100 Subject: [PATCH] Update Gallery.tsx - fixed no rerender when width is changed --- src/components/Gallery/Gallery.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Gallery/Gallery.tsx b/src/components/Gallery/Gallery.tsx index c4cdbfb..bff7eb8 100644 --- a/src/components/Gallery/Gallery.tsx +++ b/src/components/Gallery/Gallery.tsx @@ -28,7 +28,7 @@ const Gallery: React.FC = ({ children, item, ground, disableGround outerRadius, innerRadius, }; - }, [children]); + }, [children, width]); return (