Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[material-ui] Add DefaultPropsProvider #42820

Merged
merged 10 commits into from
Jul 3, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
migrate Masonry
  • Loading branch information
siriwatknp committed Jul 2, 2024
commit a87a2b46e5aa14a43d632556bfb42b782da0f4cf
5 changes: 3 additions & 2 deletions packages/mui-lab/src/Masonry/Masonry.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
'use client';
import { unstable_composeClasses as composeClasses } from '@mui/base';
import * as ReactDOM from 'react-dom';
import { styled, useThemeProps } from '@mui/material/styles';
import { styled } from '@mui/material/styles';
import { useDefaultProps } from '@mui/material/DefaultPropsProvider';
import {
createUnarySpacing,
getValue,
Expand Down Expand Up @@ -171,7 +172,7 @@ const MasonryRoot = styled('div', {
})(getStyle);

const Masonry = React.forwardRef(function Masonry(inProps, ref) {
const props = useThemeProps({
const props = useDefaultProps({
props: inProps,
name: 'MuiMasonry',
});
Expand Down
Loading