fix(styles) Remove Theme type annotation (#12544)

* tss-react doesn't need a type anotation for the Theme

* Update tss-react to 4.4.4
This commit is contained in:
Joseph Garrone
2022-11-15 08:50:22 +01:00
committed by GitHub
parent c9ff0bb75f
commit 4ef4e45ee4
64 changed files with 71 additions and 133 deletions

View File

@@ -1,4 +1,3 @@
import { Theme } from '@mui/material';
import React from 'react';
import { makeStyles } from 'tss-react/mui';
@@ -33,7 +32,7 @@ interface IProps {
}
const useStyles = makeStyles()((theme: Theme) => {
const useStyles = makeStyles()(theme => {
return {
prejoinPreviewDropdownBtn: {
alignItems: 'center',

View File

@@ -1,6 +1,5 @@
/* eslint-disable lines-around-comment */
import { Theme } from '@mui/material';
import React from 'react';
import { WithTranslation } from 'react-i18next';
import { makeStyles } from 'tss-react/mui';
@@ -36,7 +35,7 @@ interface IProps extends WithTranslation {
status: string;
}
const useStyles = makeStyles()((theme: Theme) => {
const useStyles = makeStyles()(theme => {
return {
callingDialog: {
padding: theme.spacing(3),

View File

@@ -1,6 +1,5 @@
/* eslint-disable lines-around-comment */
import { Theme } from '@mui/material';
import React from 'react';
import { WithTranslation } from 'react-i18next';
import { makeStyles } from 'tss-react/mui';
@@ -47,7 +46,7 @@ interface IProps extends WithTranslation {
passCode: string;
}
const useStyles = makeStyles()((theme: Theme) => {
const useStyles = makeStyles()(theme => {
return {
dialInDialog: {
textAlign: 'center',

View File

@@ -1,6 +1,5 @@
/* eslint-disable lines-around-comment */
import { Theme } from '@mui/material';
import React from 'react';
import { WithTranslation } from 'react-i18next';
import { makeStyles } from 'tss-react/mui';
@@ -32,7 +31,7 @@ interface IProps extends WithTranslation {
onTextButtonClick: Function;
}
const useStyles = makeStyles()((theme: Theme) => {
const useStyles = makeStyles()(theme => {
return {
dialOutDialog: {
padding: theme.spacing(3)

View File

@@ -1,4 +1,3 @@
import { Theme } from '@mui/material';
import React from 'react';
import { WithTranslation } from 'react-i18next';
import { makeStyles } from 'tss-react/mui';
@@ -27,7 +26,7 @@ export interface IProps extends WithTranslation {
deviceStatusType?: string;
}
const useStyles = makeStyles()((theme: Theme) => {
const useStyles = makeStyles()(theme => {
return {
deviceStatus: {
alignItems: 'center',