Summary
Jest / React PropTypes warn during tests (and potentially in development) when rendering EmbedGoogleMap via LocationStep:
Warning: Failed prop type: Invalid prop `className` of type `boolean` supplied to `Styled(MuiBox)`, expected `string`.
at StyledComponent (.../@material-ui/styles/styled/styled.js)
at Iframe (.../muy/dist/index.cjs.js)
at EmbedGoogleMap (.../muy/dist/index.cjs.js)
at EmbedGoogleMap (src/containers/EmbedGoogleMap/index.js)
at LocationStep (src/components/LocationStep/index.js)
Root cause
muy@1.1.0 Iframe sets:
className: variant === "cover" && classes.cover
When variant is not "cover", that expression is false, which Material-UI Box rejects.
Acceptance criteria
Notes
Prefer fixing in src/containers/EmbedGoogleMap (local implementation or safe wrapper) rather than patching node_modules/muy.
Resolution
Fixed on branch fix/embed-google-map-classname-boolean by implementing EmbedGoogleMap locally with string-safe className resolution.
Summary
Jest / React PropTypes warn during tests (and potentially in development) when rendering
EmbedGoogleMapviaLocationStep:Root cause
muy@1.1.0Iframesets:When
variantis not"cover", that expression isfalse, which Material-UIBoxrejects.Acceptance criteria
classNamewhen renderingEmbedGoogleMapwithoutvariant="cover"ParkingExpansionPanel)Notes
Prefer fixing in
src/containers/EmbedGoogleMap(local implementation or safe wrapper) rather than patchingnode_modules/muy.Resolution
Fixed on branch
fix/embed-google-map-classname-booleanby implementing EmbedGoogleMap locally with string-safeclassNameresolution.