Skip to content

Resolve React key-spread warnings and update deprecated MUI v7 props#47

Merged
miacycle merged 2 commits intolayer5io:masterfrom
YASHMAHAKAL:fix-react-warnings
Apr 10, 2026
Merged

Resolve React key-spread warnings and update deprecated MUI v7 props#47
miacycle merged 2 commits intolayer5io:masterfrom
YASHMAHAKAL:fix-react-warnings

Conversation

@YASHMAHAKAL
Copy link
Copy Markdown
Contributor

@YASHMAHAKAL YASHMAHAKAL commented Apr 10, 2026

Description

This PR addresses several Console warnings by modernizing deprecated prop usage across core components and examples, ensuring full compatibility with modern React environments and @mui/material v7.

Changes

  • React Compatibility: Refactored <Popover> to pass key explicitly instead of via spread object, resolving the compiler warnings introduced by modern JSX transforms.
  • MUI v7 slotProps Migration: Migrated deprecated TransitionComponent, TransitionProps, nextIconButtonProps, and backIconButtonProps usage to the unified MUI v7 slots and slotProps architecture.
  • MUI v7 Prop Updates: Replaced deprecated padding="default" with "normal" and replaced deprecated pagination handlers (onChangePageonPageChange).
  • DOM Attribute Cleanup: Removed the invalid interactive={true} boolean prop from examples/custom-components <Tooltip> to prevent it from leaking into the HTML DOM.

Signed commits

  • Yes, I signed my commits.

…I v5 props

Signed-off-by: YASHMAHAKAL <yvsst01@gmail.com>
Signed-off-by: YASHMAHAKAL <yvsst01@gmail.com>
Copy link
Copy Markdown

@chellej chellej left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@miacycle miacycle merged commit ba22fc1 into layer5io:master Apr 10, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants