mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2026-05-14 15:47:47 +00:00
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:
@@ -1,4 +1,3 @@
|
||||
import { Theme } from '@mui/material';
|
||||
import React, { useCallback, useRef } from 'react';
|
||||
import { WithTranslation } from 'react-i18next';
|
||||
import { makeStyles } from 'tss-react/mui';
|
||||
@@ -39,8 +38,7 @@ interface IProps extends WithTranslation {
|
||||
storedImages: Array<Image>;
|
||||
}
|
||||
|
||||
// @ts-ignore
|
||||
const useStyles = makeStyles()((theme: Theme) => {
|
||||
const useStyles = makeStyles()(theme => {
|
||||
return {
|
||||
addBackground: {
|
||||
marginRight: theme.spacing(2)
|
||||
@@ -50,7 +48,7 @@ const useStyles = makeStyles()((theme: Theme) => {
|
||||
},
|
||||
label: {
|
||||
fontSize: '14px',
|
||||
fontWeight: '600',
|
||||
fontWeight: 600,
|
||||
lineHeight: '20px',
|
||||
marginTop: theme.spacing(3),
|
||||
marginBottom: theme.spacing(2),
|
||||
|
||||
@@ -4,7 +4,6 @@ import Spinner from '@atlaskit/spinner';
|
||||
import Bourne from '@hapi/bourne';
|
||||
// @ts-ignore
|
||||
import { jitsiLocalStorage } from '@jitsi/js-utils/jitsi-local-storage';
|
||||
import { Theme } from '@mui/material';
|
||||
import React, { useCallback, useEffect, useState } from 'react';
|
||||
import { WithTranslation } from 'react-i18next';
|
||||
import { makeStyles } from 'tss-react/mui';
|
||||
@@ -112,7 +111,7 @@ function _mapStateToProps(state: IReduxState): Object {
|
||||
|
||||
const VirtualBackgroundDialog = translate(connect(_mapStateToProps)(VirtualBackground));
|
||||
|
||||
const useStyles = makeStyles()((theme: Theme) => {
|
||||
const useStyles = makeStyles()(theme => {
|
||||
return {
|
||||
dialogContainer: {
|
||||
width: 'auto'
|
||||
|
||||
Reference in New Issue
Block a user