Skip to content

Commit

Permalink
migrate Masonry
Browse files Browse the repository at this point in the history
  • Loading branch information
siriwatknp committed Jul 2, 2024
1 parent f2fc6fe commit a87a2b4
Showing 1 changed file with 3 additions and 2 deletions.
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

0 comments on commit a87a2b4

Please sign in to comment.