π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
fix(build)
Aswin Asok247edb7727ae
diff --git a/web/apps/photos/src/components/Collections/CollectionMapDialog.tsx b/web/apps/photos/src/components/Collections/CollectionMapDialog.tsxindex ec8051e537..38540b9150 100644--- a/web/apps/photos/src/components/Collections/CollectionMapDialog.tsx+++ b/web/apps/photos/src/components/Collections/CollectionMapDialog.tsx@@ -75,24 +75,32 @@ interface MapControlsProps {onClose: () => void;}-const FloatingIconButton: React.FC<IconButtonProps> = ({ sx, ...props }) => (- <IconButton- {...props}- sx={{- bgcolor: (theme) => theme.vars.palette.background.paper,- boxShadow: (theme) => theme.shadows[4],- width: 48,- height: 48,- borderRadius: "16px",- transition: "transform 0.2s ease-out",- "&:hover": {- bgcolor: (theme) => theme.vars.palette.background.paper,- transform: "scale(1.05)",- },- ...sx,- }}- />-);+const FloatingIconButton: React.FC<IconButtonProps> = ({ sx, ...props }) => {+ const baseSx = {+ bgcolor: (theme: { vars: { palette: { background: { paper: string } } } }) =>+ theme.vars.palette.background.paper,+ boxShadow: (theme: { shadows: string[] }) => theme.shadows[4],+ width: 48,+ height: 48,+ borderRadius: "16px",+ transition: "transform 0.2s ease-out",+ "&:hover": {+ bgcolor: (theme: { vars: { palette: { background: { paper: string } } } }) =>+ theme.vars.palette.background.paper,+ transform: "scale(1.05)",+ },+ };++ const mergedSx =+ sx == null+ ? baseSx+ : Array.isArray(sx)+ ? // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment+ [baseSx, ...sx]+ : [baseSx, sx];++ return <IconButton {...props} sx={mergedSx} />;+};const MapControls: React.FC<MapControlsProps> = ({ useMap, onClose }) => {const map = useMap();