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

@@ -4,7 +4,7 @@ import { makeStyles } from 'tss-react/mui';
import Icon from '../../../base/icons/components/Icon';
type Props = {
interface IProps {
/**
* Attribute used in automated testing.
@@ -30,7 +30,7 @@ type Props = {
* Function to be called on key pressed.
*/
onKeyPressed: (e?: React.KeyboardEvent) => void;
};
}
const useStyles = makeStyles()((theme: Theme) => {
@@ -72,7 +72,7 @@ const DropdownButton = ({
onButtonClick,
onKeyPressed,
label
}: Props) => {
}: IProps) => {
const { classes } = useStyles();
return (