Skip to content

Commit

Permalink
fix(MasqueradeButton): wrong type extension after @mui/material 5.14.3
Browse files Browse the repository at this point in the history
  • Loading branch information
purfectliterature committed Aug 10, 2023
1 parent 93ba7aa commit 638470b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions client/app/lib/components/core/buttons/MasqueradeButton.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import { ComponentProps } from 'react';
import { defineMessages } from 'react-intl';
import TheaterComedy from '@mui/icons-material/TheaterComedy';
import { IconButton, IconButtonProps, Tooltip } from '@mui/material';
import { IconButton, Tooltip } from '@mui/material';

import Link from 'lib/components/core/Link';
import useTranslation from 'lib/hooks/useTranslation';

interface Props extends IconButtonProps {
interface MasqueradeButtonProps extends ComponentProps<typeof IconButton> {
canMasquerade: boolean;
component?: string;
href?: string;
Expand All @@ -22,7 +23,7 @@ const translations = defineMessages({
},
});

const MasqueradeButton = (props: Props): JSX.Element => {
const MasqueradeButton = (props: MasqueradeButtonProps): JSX.Element => {
const { canMasquerade, href, ...otherProps } = props;

const { t } = useTranslation();
Expand Down

0 comments on commit 638470b

Please sign in to comment.