File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
client/app/lib/components/core/buttons Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change
1
+ import { ComponentProps } from 'react' ;
1
2
import { defineMessages } from 'react-intl' ;
2
3
import TheaterComedy from '@mui/icons-material/TheaterComedy' ;
3
- import { IconButton , IconButtonProps , Tooltip } from '@mui/material' ;
4
+ import { IconButton , Tooltip } from '@mui/material' ;
4
5
5
6
import Link from 'lib/components/core/Link' ;
6
7
import useTranslation from 'lib/hooks/useTranslation' ;
7
8
8
- interface Props extends IconButtonProps {
9
+ interface MasqueradeButtonProps extends ComponentProps < typeof IconButton > {
9
10
canMasquerade : boolean ;
10
11
component ?: string ;
11
12
href ?: string ;
@@ -22,7 +23,7 @@ const translations = defineMessages({
22
23
} ,
23
24
} ) ;
24
25
25
- const MasqueradeButton = ( props : Props ) : JSX . Element => {
26
+ const MasqueradeButton = ( props : MasqueradeButtonProps ) : JSX . Element => {
26
27
const { canMasquerade, href, ...otherProps } = props ;
27
28
28
29
const { t } = useTranslation ( ) ;
You can’t perform that action at this time.
0 commit comments