Skip to content

Commit 638470b

Browse files
fix(MasqueradeButton): wrong type extension after @mui/material 5.14.3
See mui/material-ui#38084
1 parent 93ba7aa commit 638470b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

client/app/lib/components/core/buttons/MasqueradeButton.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1+
import { ComponentProps } from 'react';
12
import { defineMessages } from 'react-intl';
23
import TheaterComedy from '@mui/icons-material/TheaterComedy';
3-
import { IconButton, IconButtonProps, Tooltip } from '@mui/material';
4+
import { IconButton, Tooltip } from '@mui/material';
45

56
import Link from 'lib/components/core/Link';
67
import useTranslation from 'lib/hooks/useTranslation';
78

8-
interface Props extends IconButtonProps {
9+
interface MasqueradeButtonProps extends ComponentProps<typeof IconButton> {
910
canMasquerade: boolean;
1011
component?: string;
1112
href?: string;
@@ -22,7 +23,7 @@ const translations = defineMessages({
2223
},
2324
});
2425

25-
const MasqueradeButton = (props: Props): JSX.Element => {
26+
const MasqueradeButton = (props: MasqueradeButtonProps): JSX.Element => {
2627
const { canMasquerade, href, ...otherProps } = props;
2728

2829
const { t } = useTranslation();

0 commit comments

Comments
 (0)