ref(TS) Require interfaces to start with I (#12424)

This commit is contained in:
Robert Pintilii
2022-10-20 12:11:27 +03:00
committed by GitHub
parent 10d202439b
commit 2938d1f2dc
197 changed files with 971 additions and 954 deletions

View File

@@ -6,9 +6,9 @@ import { makeStyles } from 'tss-react/mui';
import Icon from '../../../icons/components/Icon';
import { withPixelLineHeight } from '../../../styles/functions.web';
import { BUTTON_TYPES } from '../../constants';
import { ButtonProps } from '../types';
import { IButtonProps } from '../types';
interface IButtonProps extends ButtonProps {
interface IProps extends IButtonProps {
/**
* Class name used for additional styles.
@@ -191,7 +191,7 @@ const Button = React.forwardRef<any, any>(({
size = 'medium',
testId,
type = BUTTON_TYPES.PRIMARY
}: IButtonProps, ref) => {
}: IProps, ref) => {
const { classes: styles, cx } = useStyles();
const { t } = useTranslation();