Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

fix: React prop warnings

anandbaburajan2c59144ce333
diff --git a/web/apps/photos/src/components/TripTemplate/TimelineLocation.tsx b/web/apps/photos/src/components/TripTemplate/TimelineLocation.tsx
index 9dd92b56fa..8b25830b48 100644
--- a/web/apps/photos/src/components/TripTemplate/TimelineLocation.tsx
+++ b/web/apps/photos/src/components/TripTemplate/TimelineLocation.tsx
@@ -154,7 +154,9 @@ const DotBackground = styled(Box)(({ theme }) => ({
backgroundColor: theme.palette.background.paper,
}));
-const TimelineDot = styled(Box)<{ isReached: boolean }>(
+const TimelineDot = styled(Box, {
+ shouldForwardProp: (prop) => prop !== 'isReached',
+})<{ isReached: boolean }>(
({ theme, isReached }) => ({
position: "absolute",
left: "50%",
diff --git a/web/apps/photos/src/components/TripTemplate/TripMap.tsx b/web/apps/photos/src/components/TripTemplate/TripMap.tsx
index 87f1479795..72f6f4c9be 100644
--- a/web/apps/photos/src/components/TripTemplate/TripMap.tsx
+++ b/web/apps/photos/src/components/TripTemplate/TripMap.tsx
@@ -182,7 +182,9 @@ export const TripMap: React.FC<TripMapProps> = ({
};
// Styled components
-const MapContainerWrapper = styled(Box)<{ hasPhotoData: boolean }>(
+const MapContainerWrapper = styled(Box, {
+ shouldForwardProp: (prop) => prop !== 'hasPhotoData',
+})<{ hasPhotoData: boolean }>(
({ hasPhotoData }) => ({
width: "100%",
height: "100%",