Skip to content

Commit

Permalink
[utils][test] Remove unnecessary ref param (#43282)
Browse files Browse the repository at this point in the history
  • Loading branch information
aarongarciah committed Aug 13, 2024
1 parent 795a8c9 commit 224756b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/mui-utils/src/getDisplayName/getDisplayName.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,13 @@ describe('utils/getDisplayName.js', () => {
));
NamedForwardRefComponent.displayName = 'Div';

const AnonymousMemoComponent = React.memo((props, ref) => <div {...props} ref={ref} />);
const AnonymousMemoComponent = React.memo((props) => <div {...props} />);

const MemoComponent = React.memo(function Div(props, ref) {
return <div {...props} ref={ref} />;
const MemoComponent = React.memo(function Div(props) {
return <div {...props} />;
});

const NamedMemoComponent = React.memo((props, ref) => <div {...props} ref={ref} />);
const NamedMemoComponent = React.memo((props) => <div {...props} />);
NamedMemoComponent.displayName = 'Div';

const NamedContext = React.createContext(null);
Expand Down

0 comments on commit 224756b

Please sign in to comment.