Skip to content

fix(containers): render EmbedGoogleMap locally to avoid boolean className#443

Merged
jimmyandrade merged 1 commit into
mainfrom
fix/embed-google-map-classname-boolean
Jul 16, 2026
Merged

fix(containers): render EmbedGoogleMap locally to avoid boolean className#443
jimmyandrade merged 1 commit into
mainfrom
fix/embed-google-map-classname-boolean

Conversation

@jimmyandrade

Copy link
Copy Markdown
Member

Summary

  • Replaces the thin re-export of muy's EmbedGoogleMap with a local MUI Box/iframe implementation in src/containers/EmbedGoogleMap, so className is always a string or omitted. Upstream muy@1.1.0 sets className: variant === "cover" && classes.cover, which yields false without variant="cover" and triggers the MUI Box PropTypes warning.
  • Adds unit tests covering the embed URL, cover variant styling, string className forwarding, and the absence of the boolean-className warning; the container is at 100% statement/branch coverage.

Closes #440

Test plan

  • npm test — related suites (EmbedGoogleMap, LocationStep, ParkingExpansionPanel) green
  • Snapshot updated to reflect the local implementation

Made with Cursor

…Name

muy@1.1.0's Iframe sets `className: variant === "cover" && classes.cover`,
which yields `false` when variant is not cover and triggers a MUI Box
PropTypes warning. Implements the iframe locally with string-safe
className resolution and full unit test coverage (embed URL, cover
variant, className forwarding, no boolean className warning).

Closes #440

Co-authored-by: Cursor <cursoragent@cursor.com>
@jimmyandrade jimmyandrade added the bug Something isn't working label Jul 16, 2026
@jimmyandrade jimmyandrade self-assigned this Jul 16, 2026
@jimmyandrade
jimmyandrade merged commit 0c8c7b3 into main Jul 16, 2026
4 checks passed
@jimmyandrade
jimmyandrade deleted the fix/embed-google-map-classname-boolean branch July 16, 2026 16:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix: EmbedGoogleMap passes boolean className to MUI Box

1 participant