ref(TS ) Improve TS (#12491)

Remove global variables from files
Change type to interface
This commit is contained in:
Robert Pintilii
2022-11-03 10:35:51 +02:00
committed by GitHub
parent 36bef94c3c
commit b52b4c2a78
84 changed files with 241 additions and 296 deletions

View File

@@ -7,7 +7,7 @@ import { showOverflowDrawer } from '../../../../toolbox/functions.web';
import Icon from '../../../icons/components/Icon';
import { withPixelLineHeight } from '../../../styles/functions.web';
export type Props = {
export interface IProps {
/**
* Label used for accessibility.
@@ -69,7 +69,7 @@ export type Props = {
* Class name for the text.
*/
textClassName?: string;
};
}
const useStyles = makeStyles()((theme: Theme) => {
return {
@@ -131,7 +131,7 @@ const ContextMenuItem = ({
onKeyPress,
testId,
text,
textClassName }: Props) => {
textClassName }: IProps) => {
const { classes: styles, cx } = useStyles();
const _overflowDrawer: boolean = useSelector(showOverflowDrawer);