Просмотр исходного кода

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
factor2
Joseph Garrone 3 лет назад
Родитель
Сommit
4ef4e45ee4
Аккаунт пользователя с таким Email не найден
64 измененных файлов: 71 добавлений и 133 удалений
  1. 7
    7
      package-lock.json
  2. 1
    1
      package.json
  3. 1
    2
      react/features/base/buttons/CopyButton.web.tsx
  4. 1
    2
      react/features/base/components/participants-pane-list/ListItem.tsx
  5. 1
    2
      react/features/base/label/components/web/Label.tsx
  6. 1
    2
      react/features/base/premeeting/components/web/ActionButton.tsx
  7. 1
    2
      react/features/base/premeeting/components/web/ConnectionStatus.tsx
  8. 1
    2
      react/features/base/premeeting/components/web/PreMeetingScreen.tsx
  9. 1
    2
      react/features/base/ui/components/web/Button.tsx
  10. 1
    2
      react/features/base/ui/components/web/Checkbox.tsx
  11. 1
    2
      react/features/base/ui/components/web/ClickableIcon.tsx
  12. 1
    2
      react/features/base/ui/components/web/ContextMenu.tsx
  13. 1
    2
      react/features/base/ui/components/web/ContextMenuItem.tsx
  14. 1
    2
      react/features/base/ui/components/web/ContextMenuItemGroup.tsx
  15. 1
    2
      react/features/base/ui/components/web/Dialog.tsx
  16. 1
    2
      react/features/base/ui/components/web/Input.tsx
  17. 1
    2
      react/features/base/ui/components/web/Select.tsx
  18. 1
    2
      react/features/base/ui/components/web/Switch.tsx
  19. 1
    2
      react/features/base/ui/components/web/Tabs.tsx
  20. 1
    2
      react/features/chat/components/web/NewMessagesButton.tsx
  21. 1
    2
      react/features/conference/components/web/RaisedHandsCountLabel.tsx
  22. 1
    2
      react/features/display-name/components/web/DisplayName.tsx
  23. 1
    2
      react/features/display-name/components/web/DisplayNameBadge.tsx
  24. 1
    2
      react/features/display-name/components/web/StageParticipantNameLabel.tsx
  25. 1
    2
      react/features/filmstrip/components/web/RaisedHandIndicator.tsx
  26. 1
    2
      react/features/gifs/components/web/GifsMenu.tsx
  27. 1
    2
      react/features/invite/components/add-people-dialog/web/CopyMeetingLinkSection.tsx
  28. 1
    2
      react/features/invite/components/add-people-dialog/web/DialInLimit.tsx
  29. 1
    2
      react/features/invite/components/add-people-dialog/web/DialInSection.tsx
  30. 1
    2
      react/features/invite/components/add-people-dialog/web/InviteByEmailSection.tsx
  31. 1
    2
      react/features/keyboard-shortcuts/components/web/KeyboardShortcutsDialog.tsx
  32. 1
    2
      react/features/large-video/components/ScreenSharePlaceholder.web.tsx
  33. 1
    1
      react/features/notifications/components/web/NotificationsContainer.tsx
  34. 1
    2
      react/features/participants-pane/components/breakout-rooms/components/web/CollapsibleRoom.tsx
  35. 1
    2
      react/features/participants-pane/components/breakout-rooms/components/web/JoinQuickActionButton.tsx
  36. 1
    2
      react/features/participants-pane/components/breakout-rooms/components/web/RoomParticipantContextMenu.tsx
  37. 1
    2
      react/features/participants-pane/components/web/FooterContextMenu.tsx
  38. 1
    2
      react/features/participants-pane/components/web/LobbyParticipantItem.tsx
  39. 1
    2
      react/features/participants-pane/components/web/LobbyParticipants.tsx
  40. 1
    2
      react/features/participants-pane/components/web/MeetingParticipants.tsx
  41. 1
    2
      react/features/participants-pane/components/web/ParticipantItem.tsx
  42. 1
    2
      react/features/participants-pane/components/web/ParticipantQuickAction.tsx
  43. 1
    2
      react/features/participants-pane/components/web/ParticipantsPane.tsx
  44. 1
    2
      react/features/participants-pane/components/web/RaisedHandIndicator.tsx
  45. 1
    2
      react/features/polls/components/web/PollAnswer.tsx
  46. 1
    2
      react/features/polls/components/web/PollCreate.tsx
  47. 1
    2
      react/features/prejoin/components/web/DropdownButton.tsx
  48. 1
    2
      react/features/prejoin/components/web/dialogs/CallingDialog.tsx
  49. 1
    2
      react/features/prejoin/components/web/dialogs/DialInDialog.tsx
  50. 1
    2
      react/features/prejoin/components/web/dialogs/DialOutDialog.tsx
  51. 1
    2
      react/features/prejoin/components/web/preview/DeviceStatus.tsx
  52. 1
    2
      react/features/salesforce/components/web/RecordItem.tsx
  53. 1
    2
      react/features/salesforce/components/web/SalesforceLinkDialog.tsx
  54. 1
    2
      react/features/speaker-stats/components/web/SpeakerStats.tsx
  55. 1
    2
      react/features/speaker-stats/components/web/SpeakerStatsLabels.tsx
  56. 1
    2
      react/features/speaker-stats/components/web/SpeakerStatsList.tsx
  57. 1
    2
      react/features/speaker-stats/components/web/SpeakerStatsSearch.tsx
  58. 1
    2
      react/features/subtitles/components/LanguageListItem.web.tsx
  59. 1
    2
      react/features/subtitles/components/LanguageSelectorDialog.web.tsx
  60. 1
    2
      react/features/toolbox/components/web/Drawer.tsx
  61. 1
    2
      react/features/video-menu/components/web/ParticipantContextMenu.tsx
  62. 1
    2
      react/features/video-quality/components/Slider.web.tsx
  63. 2
    4
      react/features/virtual-background/components/UploadImageButton.tsx
  64. 1
    2
      react/features/virtual-background/components/VirtualBackgroundDialog.tsx

+ 7
- 7
package-lock.json Просмотреть файл

@@ -127,7 +127,7 @@
127 127
         "resemblejs": "4.0.0",
128 128
         "seamless-scroll-polyfill": "2.1.8",
129 129
         "styled-components": "3.4.9",
130
-        "tss-react": "4.0.0",
130
+        "tss-react": "4.4.4",
131 131
         "util": "0.12.1",
132 132
         "uuid": "8.3.2",
133 133
         "wasm-check": "2.0.1",
@@ -19019,9 +19019,9 @@
19019 19019
       "integrity": "sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw=="
19020 19020
     },
19021 19021
     "node_modules/tss-react": {
19022
-      "version": "4.0.0",
19023
-      "resolved": "https://registry.npmjs.org/tss-react/-/tss-react-4.0.0.tgz",
19024
-      "integrity": "sha512-pPkOKWiWWPbKdQFnGGeHEgRceUwkjrv0eldVCAdBll3j6Y3Ys/xwqsnlWYwWOU3SMJygVRE/S4CsIYx6KPpOkA==",
19022
+      "version": "4.4.4",
19023
+      "resolved": "https://registry.npmjs.org/tss-react/-/tss-react-4.4.4.tgz",
19024
+      "integrity": "sha512-Bzyg99bIQq3Lk4Rwc5XMOps58c1biw1rghCkApIX5XkAB+/VjGCIFSl63PePhmiRNvKRxJRpawGPPxHytiw1TA==",
19025 19025
       "dependencies": {
19026 19026
         "@emotion/cache": "*",
19027 19027
         "@emotion/serialize": "*",
@@ -34738,9 +34738,9 @@
34738 34738
       "integrity": "sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw=="
34739 34739
     },
34740 34740
     "tss-react": {
34741
-      "version": "4.0.0",
34742
-      "resolved": "https://registry.npmjs.org/tss-react/-/tss-react-4.0.0.tgz",
34743
-      "integrity": "sha512-pPkOKWiWWPbKdQFnGGeHEgRceUwkjrv0eldVCAdBll3j6Y3Ys/xwqsnlWYwWOU3SMJygVRE/S4CsIYx6KPpOkA==",
34741
+      "version": "4.4.4",
34742
+      "resolved": "https://registry.npmjs.org/tss-react/-/tss-react-4.4.4.tgz",
34743
+      "integrity": "sha512-Bzyg99bIQq3Lk4Rwc5XMOps58c1biw1rghCkApIX5XkAB+/VjGCIFSl63PePhmiRNvKRxJRpawGPPxHytiw1TA==",
34744 34744
       "requires": {
34745 34745
         "@emotion/cache": "*",
34746 34746
         "@emotion/serialize": "*",

+ 1
- 1
package.json Просмотреть файл

@@ -132,7 +132,7 @@
132 132
     "resemblejs": "4.0.0",
133 133
     "seamless-scroll-polyfill": "2.1.8",
134 134
     "styled-components": "3.4.9",
135
-    "tss-react": "4.0.0",
135
+    "tss-react": "4.4.4",
136 136
     "util": "0.12.1",
137 137
     "uuid": "8.3.2",
138 138
     "wasm-check": "2.0.1",

+ 1
- 2
react/features/base/buttons/CopyButton.web.tsx Просмотреть файл

@@ -1,5 +1,4 @@
1 1
 /* eslint-disable react/jsx-no-bind */
2
-import { Theme } from '@mui/material';
3 2
 import React, { useEffect, useState } from 'react';
4 3
 import { makeStyles } from 'tss-react/mui';
5 4
 
@@ -8,7 +7,7 @@ import { IconCheck, IconCopy } from '../icons/svg';
8 7
 import { withPixelLineHeight } from '../styles/functions.web';
9 8
 import { copyText } from '../util/copyText.web';
10 9
 
11
-const useStyles = makeStyles()((theme: Theme) => {
10
+const useStyles = makeStyles()(theme => {
12 11
     return {
13 12
         copyButton: {
14 13
             ...withPixelLineHeight(theme.typography.bodyShortBold),

+ 1
- 2
react/features/base/components/participants-pane-list/ListItem.tsx Просмотреть файл

@@ -1,4 +1,3 @@
1
-import { Theme } from '@mui/material';
2 1
 import React, { ReactNode } from 'react';
3 2
 import { makeStyles } from 'tss-react/mui';
4 3
 
@@ -76,7 +75,7 @@ interface IProps {
76 75
 
77 76
 }
78 77
 
79
-const useStyles = makeStyles()((theme: Theme) => {
78
+const useStyles = makeStyles()(theme => {
80 79
     return {
81 80
         container: {
82 81
             alignItems: 'center',

+ 1
- 2
react/features/base/label/components/web/Label.tsx Просмотреть файл

@@ -1,4 +1,3 @@
1
-import { Theme } from '@mui/material';
2 1
 import React from 'react';
3 2
 import { makeStyles } from 'tss-react/mui';
4 3
 
@@ -45,7 +44,7 @@ interface IProps {
45 44
 
46 45
 }
47 46
 
48
-const useStyles = makeStyles()((theme: Theme) => {
47
+const useStyles = makeStyles()(theme => {
49 48
     return {
50 49
         label: {
51 50
             ...withPixelLineHeight(theme.typography.labelRegular),

+ 1
- 2
react/features/base/premeeting/components/web/ActionButton.tsx Просмотреть файл

@@ -1,4 +1,3 @@
1
-import { Theme } from '@mui/material';
2 1
 import React, { ReactNode, useCallback } from 'react';
3 2
 import { makeStyles } from 'tss-react/mui';
4 3
 
@@ -80,7 +79,7 @@ interface IProps {
80 79
     type: string;
81 80
 }
82 81
 
83
-const useStyles = makeStyles()((theme: Theme) => {
82
+const useStyles = makeStyles()(theme => {
84 83
     return {
85 84
         actionButton: {
86 85
             ...withPixelLineHeight(theme.typography.bodyLongBold),

+ 1
- 2
react/features/base/premeeting/components/web/ConnectionStatus.tsx Просмотреть файл

@@ -1,4 +1,3 @@
1
-import { Theme } from '@mui/material';
2 1
 import React, { useCallback, useState } from 'react';
3 2
 import { WithTranslation } from 'react-i18next';
4 3
 import { makeStyles } from 'tss-react/mui';
@@ -25,7 +24,7 @@ interface IProps extends WithTranslation {
25 24
     connectionType?: string;
26 25
 }
27 26
 
28
-const useStyles = makeStyles()((theme: Theme) => {
27
+const useStyles = makeStyles()(theme => {
29 28
     return {
30 29
         connectionStatus: {
31 30
             borderRadius: '6px',

+ 1
- 2
react/features/base/premeeting/components/web/PreMeetingScreen.tsx Просмотреть файл

@@ -1,5 +1,4 @@
1 1
 /* eslint-disable lines-around-comment */
2
-import { Theme } from '@mui/material';
3 2
 import React, { ReactNode } from 'react';
4 3
 import { makeStyles } from 'tss-react/mui';
5 4
 
@@ -85,7 +84,7 @@ interface IProps {
85 84
     videoTrack?: Object;
86 85
 }
87 86
 
88
-const useStyles = makeStyles()((theme: Theme) => {
87
+const useStyles = makeStyles()(theme => {
89 88
     return {
90 89
         subtitle: {
91 90
             ...withPixelLineHeight(theme.typography.heading5),

+ 1
- 2
react/features/base/ui/components/web/Button.tsx Просмотреть файл

@@ -1,4 +1,3 @@
1
-import { Theme } from '@mui/material';
2 1
 import React from 'react';
3 2
 import { useTranslation } from 'react-i18next';
4 3
 import { makeStyles } from 'tss-react/mui';
@@ -47,7 +46,7 @@ interface IProps extends IButtonProps {
47 46
     testId?: string;
48 47
 }
49 48
 
50
-const useStyles = makeStyles()((theme: Theme) => {
49
+const useStyles = makeStyles()(theme => {
51 50
     return {
52 51
         button: {
53 52
             backgroundColor: theme.palette.action01,

+ 1
- 2
react/features/base/ui/components/web/Checkbox.tsx Просмотреть файл

@@ -1,4 +1,3 @@
1
-import { Theme } from '@mui/material';
2 1
 import React from 'react';
3 2
 import { makeStyles } from 'tss-react/mui';
4 3
 
@@ -40,7 +39,7 @@ interface ICheckboxProps {
40 39
     onChange: (e: React.ChangeEvent<HTMLInputElement>) => void;
41 40
 }
42 41
 
43
-const useStyles = makeStyles()((theme: Theme) => {
42
+const useStyles = makeStyles()(theme => {
44 43
     return {
45 44
         formControl: {
46 45
             ...withPixelLineHeight(theme.typography.bodyLongRegular),

+ 1
- 2
react/features/base/ui/components/web/ClickableIcon.tsx Просмотреть файл

@@ -1,4 +1,3 @@
1
-import { Theme } from '@mui/material';
2 1
 import React from 'react';
3 2
 import { makeStyles } from 'tss-react/mui';
4 3
 
@@ -12,7 +11,7 @@ interface IProps {
12 11
     onClick: () => void;
13 12
 }
14 13
 
15
-const useStyles = makeStyles()((theme: Theme) => {
14
+const useStyles = makeStyles()(theme => {
16 15
     return {
17 16
         button: {
18 17
             padding: '2px',

+ 1
- 2
react/features/base/ui/components/web/ContextMenu.tsx Просмотреть файл

@@ -1,4 +1,3 @@
1
-import { Theme } from '@mui/material';
2 1
 import React, { ReactNode, useEffect, useLayoutEffect, useRef, useState } from 'react';
3 2
 import { useSelector } from 'react-redux';
4 3
 import { makeStyles } from 'tss-react/mui';
@@ -104,7 +103,7 @@ interface IProps {
104 103
 
105 104
 const MAX_HEIGHT = 400;
106 105
 
107
-const useStyles = makeStyles()((theme: Theme) => {
106
+const useStyles = makeStyles()(theme => {
108 107
     return {
109 108
         contextMenu: {
110 109
             backgroundColor: theme.palette.ui01,

+ 1
- 2
react/features/base/ui/components/web/ContextMenuItem.tsx Просмотреть файл

@@ -1,4 +1,3 @@
1
-import { Theme } from '@mui/material';
2 1
 import React, { ReactNode } from 'react';
3 2
 import { useSelector } from 'react-redux';
4 3
 import { makeStyles } from 'tss-react/mui';
@@ -71,7 +70,7 @@ export interface IProps {
71 70
     textClassName?: string;
72 71
 }
73 72
 
74
-const useStyles = makeStyles()((theme: Theme) => {
73
+const useStyles = makeStyles()(theme => {
75 74
     return {
76 75
         contextMenuItem: {
77 76
             alignItems: 'center',

+ 1
- 2
react/features/base/ui/components/web/ContextMenuItemGroup.tsx Просмотреть файл

@@ -1,4 +1,3 @@
1
-import { Theme } from '@mui/material';
2 1
 import React, { ReactNode } from 'react';
3 2
 import { makeStyles } from 'tss-react/mui';
4 3
 
@@ -18,7 +17,7 @@ interface IProps {
18 17
     children?: ReactNode;
19 18
 }
20 19
 
21
-const useStyles = makeStyles()((theme: Theme) => {
20
+const useStyles = makeStyles()(theme => {
22 21
     return {
23 22
         contextMenuItemGroup: {
24 23
             '&:not(:empty)': {

+ 1
- 2
react/features/base/ui/components/web/Dialog.tsx Просмотреть файл

@@ -1,4 +1,3 @@
1
-import { Theme } from '@mui/material';
2 1
 import React, { useCallback, useContext, useEffect } from 'react';
3 2
 import FocusLock from 'react-focus-lock';
4 3
 import { useTranslation } from 'react-i18next';
@@ -15,7 +14,7 @@ import ClickableIcon from './ClickableIcon';
15 14
 import { DialogTransitionContext } from './DialogTransition';
16 15
 
17 16
 
18
-const useStyles = makeStyles()((theme: Theme) => {
17
+const useStyles = makeStyles()(theme => {
19 18
     return {
20 19
         container: {
21 20
             width: '100%',

+ 1
- 2
react/features/base/ui/components/web/Input.tsx Просмотреть файл

@@ -1,4 +1,3 @@
1
-import { Theme } from '@mui/material';
2 1
 import React, { useCallback } from 'react';
3 2
 import TextareaAutosize from 'react-textarea-autosize';
4 3
 import { makeStyles } from 'tss-react/mui';
@@ -26,7 +25,7 @@ interface IProps extends IInputProps {
26 25
     type?: 'text' | 'email' | 'number' | 'password';
27 26
 }
28 27
 
29
-const useStyles = makeStyles()((theme: Theme) => {
28
+const useStyles = makeStyles()(theme => {
30 29
     return {
31 30
         inputContainer: {
32 31
             display: 'flex',

+ 1
- 2
react/features/base/ui/components/web/Select.tsx Просмотреть файл

@@ -1,4 +1,3 @@
1
-import { Theme } from '@mui/material';
2 1
 import React, { ChangeEvent } from 'react';
3 2
 import { makeStyles } from 'tss-react/mui';
4 3
 
@@ -53,7 +52,7 @@ interface ISelectProps {
53 52
     value: number | string;
54 53
 }
55 54
 
56
-const useStyles = makeStyles()((theme: Theme) => {
55
+const useStyles = makeStyles()(theme => {
57 56
     return {
58 57
         container: {
59 58
             display: 'flex',

+ 1
- 2
react/features/base/ui/components/web/Switch.tsx Просмотреть файл

@@ -1,4 +1,3 @@
1
-import { Theme } from '@mui/material';
2 1
 import React, { useCallback } from 'react';
3 2
 import { makeStyles } from 'tss-react/mui';
4 3
 
@@ -15,7 +14,7 @@ interface IProps extends ISwitchProps {
15 14
     id?: string;
16 15
 }
17 16
 
18
-const useStyles = makeStyles()((theme: Theme) => {
17
+const useStyles = makeStyles()(theme => {
19 18
     return {
20 19
         container: {
21 20
             position: 'relative',

+ 1
- 2
react/features/base/ui/components/web/Tabs.tsx Просмотреть файл

@@ -1,4 +1,3 @@
1
-import { Theme } from '@mui/material';
2 1
 import React, { useCallback } from 'react';
3 2
 import { makeStyles } from 'tss-react/mui';
4 3
 
@@ -18,7 +17,7 @@ interface ITabProps {
18 17
     }>;
19 18
 }
20 19
 
21
-const useStyles = makeStyles()((theme: Theme) => {
20
+const useStyles = makeStyles()(theme => {
22 21
     return {
23 22
         container: {
24 23
             display: 'flex'

+ 1
- 2
react/features/chat/components/web/NewMessagesButton.tsx Просмотреть файл

@@ -1,4 +1,3 @@
1
-import { Theme } from '@mui/material';
2 1
 import React from 'react';
3 2
 import { WithTranslation } from 'react-i18next';
4 3
 import { makeStyles } from 'tss-react/mui';
@@ -17,7 +16,7 @@ export interface INewMessagesButtonProps extends WithTranslation {
17 16
     onGoToFirstUnreadMessage: () => void;
18 17
 }
19 18
 
20
-const useStyles = makeStyles()((theme: Theme) => {
19
+const useStyles = makeStyles()(theme => {
21 20
     return {
22 21
         container: {
23 22
             position: 'absolute',

+ 1
- 2
react/features/conference/components/web/RaisedHandsCountLabel.tsx Просмотреть файл

@@ -1,4 +1,3 @@
1
-import { Theme } from '@mui/material';
2 1
 import React, { useCallback } from 'react';
3 2
 import { useTranslation } from 'react-i18next';
4 3
 import { useDispatch, useSelector } from 'react-redux';
@@ -12,7 +11,7 @@ import Label from '../../../base/label/components/web/Label';
12 11
 import { Tooltip } from '../../../base/tooltip';
13 12
 import { open as openParticipantsPane } from '../../../participants-pane/actions';
14 13
 
15
-const useStyles = makeStyles()((theme: Theme) => {
14
+const useStyles = makeStyles()(theme => {
16 15
     return {
17 16
         label: {
18 17
             backgroundColor: theme.palette.warning02,

+ 1
- 2
react/features/display-name/components/web/DisplayName.tsx Просмотреть файл

@@ -1,5 +1,4 @@
1 1
 /* eslint-disable lines-around-comment */
2
-import { Theme } from '@mui/material';
3 2
 import React, { useCallback, useEffect, useRef, useState } from 'react';
4 3
 import { useTranslation } from 'react-i18next';
5 4
 import { useDispatch, useSelector } from 'react-redux';
@@ -50,7 +49,7 @@ interface IProps {
50 49
     thumbnailType: string;
51 50
 }
52 51
 
53
-const useStyles = makeStyles()((theme: Theme) => {
52
+const useStyles = makeStyles()(theme => {
54 53
     return {
55 54
         displayName: {
56 55
             ...withPixelLineHeight(theme.typography.labelBold),

+ 1
- 2
react/features/display-name/components/web/DisplayNameBadge.tsx Просмотреть файл

@@ -1,8 +1,7 @@
1
-import { Theme } from '@mui/material';
2 1
 import React from 'react';
3 2
 import { makeStyles } from 'tss-react/mui';
4 3
 
5
-const useStyles = makeStyles()((theme: Theme) => {
4
+const useStyles = makeStyles()(theme => {
6 5
     const { text01 } = theme.palette;
7 6
 
8 7
     return {

+ 1
- 2
react/features/display-name/components/web/StageParticipantNameLabel.tsx Просмотреть файл

@@ -1,6 +1,5 @@
1 1
 /* eslint-disable lines-around-comment */
2 2
 
3
-import { Theme } from '@mui/material';
4 3
 import React from 'react';
5 4
 import { useSelector } from 'react-redux';
6 5
 import { makeStyles } from 'tss-react/mui';
@@ -22,7 +21,7 @@ import { isLayoutTileView } from '../../../video-layout';
22 21
 
23 22
 import DisplayNameBadge from './DisplayNameBadge';
24 23
 
25
-const useStyles = makeStyles()((theme: Theme) => {
24
+const useStyles = makeStyles()(theme => {
26 25
     return {
27 26
         badgeContainer: {
28 27
             ...withPixelLineHeight(theme.typography.bodyShortRegularLarge),

+ 1
- 2
react/features/filmstrip/components/web/RaisedHandIndicator.tsx Просмотреть файл

@@ -1,4 +1,3 @@
1
-import { Theme } from '@mui/material';
2 1
 import React from 'react';
3 2
 import { useSelector } from 'react-redux';
4 3
 import { makeStyles } from 'tss-react/mui';
@@ -31,7 +30,7 @@ interface IProps {
31 30
     tooltipPosition: string;
32 31
 }
33 32
 
34
-const useStyles = makeStyles()((theme: Theme) => {
33
+const useStyles = makeStyles()(theme => {
35 34
     return {
36 35
         raisedHandIndicator: {
37 36
             backgroundColor: theme.palette.warning02,

+ 1
- 2
react/features/gifs/components/web/GifsMenu.tsx Просмотреть файл

@@ -1,7 +1,6 @@
1 1
 /* eslint-disable lines-around-comment */
2 2
 import { GiphyFetch, TrendingOptions } from '@giphy/js-fetch-api';
3 3
 import { Grid } from '@giphy/react-components';
4
-import { Theme } from '@mui/material';
5 4
 import React, { useCallback, useEffect, useState } from 'react';
6 5
 import { useTranslation } from 'react-i18next';
7 6
 import { batch, useDispatch, useSelector } from 'react-redux';
@@ -29,7 +28,7 @@ import {
29 28
 
30 29
 const OVERFLOW_DRAWER_PADDING = 16;
31 30
 
32
-const useStyles = makeStyles()((theme: Theme) => {
31
+const useStyles = makeStyles()(theme => {
33 32
     return {
34 33
         gifsMenu: {
35 34
             width: '100%',

+ 1
- 2
react/features/invite/components/add-people-dialog/web/CopyMeetingLinkSection.tsx Просмотреть файл

@@ -1,4 +1,3 @@
1
-import { Theme } from '@mui/material';
2 1
 import React from 'react';
3 2
 import { useTranslation } from 'react-i18next';
4 3
 import { makeStyles } from 'tss-react/mui';
@@ -15,7 +14,7 @@ interface IProps {
15 14
     url: string;
16 15
 }
17 16
 
18
-const useStyles = makeStyles()((theme: Theme) => {
17
+const useStyles = makeStyles()(theme => {
19 18
     return {
20 19
         label: {
21 20
             display: 'block',

+ 1
- 2
react/features/invite/components/add-people-dialog/web/DialInLimit.tsx Просмотреть файл

@@ -1,4 +1,3 @@
1
-import { Theme } from '@mui/material';
2 1
 import React from 'react';
3 2
 import { WithTranslation } from 'react-i18next';
4 3
 import { makeStyles } from 'tss-react/mui';
@@ -7,7 +6,7 @@ import { translate } from '../../../../base/i18n/functions';
7 6
 import { withPixelLineHeight } from '../../../../base/styles/functions.web';
8 7
 import { UPGRADE_OPTIONS_LINK, UPGRADE_OPTIONS_TEXT } from '../../../constants';
9 8
 
10
-const useStyles = makeStyles()((theme: Theme) => {
9
+const useStyles = makeStyles()(theme => {
11 10
     return {
12 11
         limitContainer: {
13 12
             backgroundColor: theme.palette.warning01,

+ 1
- 2
react/features/invite/components/add-people-dialog/web/DialInSection.tsx Просмотреть файл

@@ -1,4 +1,3 @@
1
-import { Theme } from '@mui/material';
2 1
 import React from 'react';
3 2
 import { useTranslation } from 'react-i18next';
4 3
 import { useSelector } from 'react-redux';
@@ -21,7 +20,7 @@ interface IProps {
21 20
     phoneNumber: string;
22 21
 }
23 22
 
24
-const useStyles = makeStyles()((theme: Theme) => {
23
+const useStyles = makeStyles()(theme => {
25 24
     return {
26 25
         container: {
27 26
             '& .info-label': {

+ 1
- 2
react/features/invite/components/add-people-dialog/web/InviteByEmailSection.tsx Просмотреть файл

@@ -1,4 +1,3 @@
1
-import { Theme } from '@mui/material';
2 1
 import React from 'react';
3 2
 import { useTranslation } from 'react-i18next';
4 3
 import { makeStyles } from 'tss-react/mui';
@@ -35,7 +34,7 @@ interface IProps {
35 34
     inviteTextiOS: string;
36 35
 }
37 36
 
38
-const useStyles = makeStyles()((theme: Theme) => {
37
+const useStyles = makeStyles()(theme => {
39 38
     return {
40 39
         container: {
41 40
             marginTop: theme.spacing(4)

+ 1
- 2
react/features/keyboard-shortcuts/components/web/KeyboardShortcutsDialog.tsx Просмотреть файл

@@ -1,4 +1,3 @@
1
-import { Theme } from '@mui/material';
2 1
 import React from 'react';
3 2
 import { useTranslation } from 'react-i18next';
4 3
 import { makeStyles } from 'tss-react/mui';
@@ -25,7 +24,7 @@ interface IProps {
25 24
  *
26 25
  * @returns {Object}
27 26
  */
28
-const useStyles = makeStyles()((theme: Theme) => {
27
+const useStyles = makeStyles()(theme => {
29 28
     return {
30 29
         list: {
31 30
             listStyleType: 'none',

+ 1
- 2
react/features/large-video/components/ScreenSharePlaceholder.web.tsx Просмотреть файл

@@ -1,4 +1,3 @@
1
-import { Theme } from '@mui/material';
2 1
 import React, { useCallback } from 'react';
3 2
 import { WithTranslation } from 'react-i18next';
4 3
 import { useStore } from 'react-redux';
@@ -9,7 +8,7 @@ import { translate } from '../../base/i18n/functions';
9 8
 // @ts-ignore
10 9
 import { setSeeWhatIsBeingShared } from '../actions.web';
11 10
 
12
-const useStyles = makeStyles()((theme: Theme) => {
11
+const useStyles = makeStyles()(theme => {
13 12
     return {
14 13
         overlayContainer: {
15 14
             width: '100%',

+ 1
- 1
react/features/notifications/components/web/NotificationsContainer.tsx Просмотреть файл

@@ -1,6 +1,6 @@
1 1
 import { FlagGroupContext } from '@atlaskit/flag/flag-group';
2 2
 import { AtlasKitThemeProvider } from '@atlaskit/theme';
3
-import { Theme } from '@mui/material';
3
+import { Theme } from '@mui/material/styles';
4 4
 import { withStyles } from '@mui/styles';
5 5
 import clsx from 'clsx';
6 6
 import React, { Component } from 'react';

+ 1
- 2
react/features/participants-pane/components/breakout-rooms/components/web/CollapsibleRoom.tsx Просмотреть файл

@@ -1,4 +1,3 @@
1
-import { Theme } from '@mui/material';
2 1
 import React, { ReactElement, useCallback, useState } from 'react';
3 2
 import { useTranslation } from 'react-i18next';
4 3
 import { useSelector } from 'react-redux';
@@ -80,7 +79,7 @@ interface IProps {
80 79
     toggleParticipantMenu: Function;
81 80
 }
82 81
 
83
-const useStyles = makeStyles()((theme: Theme) => {
82
+const useStyles = makeStyles()(theme => {
84 83
     return {
85 84
         container: {
86 85
             boxShadow: 'none'

+ 1
- 2
react/features/participants-pane/components/breakout-rooms/components/web/JoinQuickActionButton.tsx Просмотреть файл

@@ -1,4 +1,3 @@
1
-import { Theme } from '@mui/material';
2 1
 import React, { useCallback } from 'react';
3 2
 import { useTranslation } from 'react-i18next';
4 3
 import { useDispatch } from 'react-redux';
@@ -20,7 +19,7 @@ interface IProps {
20 19
     };
21 20
 }
22 21
 
23
-const useStyles = makeStyles()((theme: Theme) => {
22
+const useStyles = makeStyles()(theme => {
24 23
     return {
25 24
         button: {
26 25
             marginRight: theme.spacing(2)

+ 1
- 2
react/features/participants-pane/components/breakout-rooms/components/web/RoomParticipantContextMenu.tsx Просмотреть файл

@@ -1,5 +1,4 @@
1 1
 /* eslint-disable lines-around-comment */
2
-import { Theme } from '@mui/material';
3 2
 import React, { useCallback, useMemo } from 'react';
4 3
 import { useTranslation } from 'react-i18next';
5 4
 import { useSelector } from 'react-redux';
@@ -49,7 +48,7 @@ interface IProps {
49 48
     onSelect: (force?: any) => void;
50 49
 }
51 50
 
52
-const useStyles = makeStyles()((theme: Theme) => {
51
+const useStyles = makeStyles()(theme => {
53 52
     return {
54 53
         text: {
55 54
             color: theme.palette.text02,

+ 1
- 2
react/features/participants-pane/components/web/FooterContextMenu.tsx Просмотреть файл

@@ -1,5 +1,4 @@
1 1
 /* eslint-disable lines-around-comment */
2
-import { Theme } from '@mui/material';
3 2
 import React, { useCallback } from 'react';
4 3
 import { useTranslation } from 'react-i18next';
5 4
 import { useDispatch, useSelector } from 'react-redux';
@@ -39,7 +38,7 @@ import { SETTINGS_TABS } from '../../../settings/constants';
39 38
 // @ts-ignore
40 39
 import { MuteEveryonesVideoDialog } from '../../../video-menu/components';
41 40
 
42
-const useStyles = makeStyles()((theme: Theme) => {
41
+const useStyles = makeStyles()(theme => {
43 42
     return {
44 43
         contextMenu: {
45 44
             bottom: 'auto',

+ 1
- 2
react/features/participants-pane/components/web/LobbyParticipantItem.tsx Просмотреть файл

@@ -1,6 +1,5 @@
1 1
 // eslint-disable-next-line lines-around-comment
2 2
 
3
-import { Theme } from '@mui/material';
4 3
 import React, { useCallback, useRef, useState } from 'react';
5 4
 import { useTranslation } from 'react-i18next';
6 5
 import { useSelector } from 'react-redux';
@@ -39,7 +38,7 @@ interface IProps {
39 38
     participant: IParticipant;
40 39
 }
41 40
 
42
-const useStyles = makeStyles()((theme: Theme) => {
41
+const useStyles = makeStyles()(theme => {
43 42
     return {
44 43
         button: {
45 44
             marginRight: theme.spacing(2)

+ 1
- 2
react/features/participants-pane/components/web/LobbyParticipants.tsx Просмотреть файл

@@ -1,5 +1,4 @@
1 1
 /* eslint-disable lines-around-comment */
2
-import { Theme } from '@mui/material';
3 2
 import React, { useCallback } from 'react';
4 3
 import { useTranslation } from 'react-i18next';
5 4
 import { useDispatch, useSelector } from 'react-redux';
@@ -22,7 +21,7 @@ import { useLobbyActions, useParticipantDrawer } from '../../hooks';
22 21
 // @ts-ignore
23 22
 import LobbyParticipantItems from './LobbyParticipantItems';
24 23
 
25
-const useStyles = makeStyles()((theme: Theme) => {
24
+const useStyles = makeStyles()(theme => {
26 25
     return {
27 26
         drawerActions: {
28 27
             listStyleType: 'none',

+ 1
- 2
react/features/participants-pane/components/web/MeetingParticipants.tsx Просмотреть файл

@@ -1,6 +1,5 @@
1 1
 /* eslint-disable lines-around-comment */
2 2
 
3
-import { Theme } from '@mui/material';
4 3
 import React, { useCallback } from 'react';
5 4
 import { useTranslation } from 'react-i18next';
6 5
 import { useDispatch, useSelector } from 'react-redux';
@@ -30,7 +29,7 @@ import MeetingParticipantContextMenu from './MeetingParticipantContextMenu';
30 29
 // @ts-ignore
31 30
 import MeetingParticipantItems from './MeetingParticipantItems';
32 31
 
33
-const useStyles = makeStyles()((theme: Theme) => {
32
+const useStyles = makeStyles()(theme => {
34 33
     return {
35 34
         heading: {
36 35
             color: theme.palette.text02,

+ 1
- 2
react/features/participants-pane/components/web/ParticipantItem.tsx Просмотреть файл

@@ -1,4 +1,3 @@
1
-import { Theme } from '@mui/material';
2 1
 import React, { ReactElement, useCallback } from 'react';
3 2
 import { WithTranslation } from 'react-i18next';
4 3
 import { makeStyles } from 'tss-react/mui';
@@ -97,7 +96,7 @@ interface IProps extends WithTranslation {
97 96
     youText?: string;
98 97
 }
99 98
 
100
-const useStyles = makeStyles()((theme: Theme) => {
99
+const useStyles = makeStyles()(theme => {
101 100
     return {
102 101
         nameContainer: {
103 102
             display: 'flex',

+ 1
- 2
react/features/participants-pane/components/web/ParticipantQuickAction.tsx Просмотреть файл

@@ -1,4 +1,3 @@
1
-import { Theme } from '@mui/material';
2 1
 import React, { useCallback } from 'react';
3 2
 import { useTranslation } from 'react-i18next';
4 3
 import { useDispatch } from 'react-redux';
@@ -46,7 +45,7 @@ interface IProps {
46 45
     participantName: string;
47 46
 }
48 47
 
49
-const useStyles = makeStyles()((theme: Theme) => {
48
+const useStyles = makeStyles()(theme => {
50 49
     return {
51 50
         button: {
52 51
             marginRight: theme.spacing(2)

+ 1
- 2
react/features/participants-pane/components/web/ParticipantsPane.tsx Просмотреть файл

@@ -1,5 +1,4 @@
1 1
 /* eslint-disable lines-around-comment */
2
-import { Theme } from '@mui/material';
3 2
 import React, { useCallback, useEffect, useState } from 'react';
4 3
 import { useTranslation } from 'react-i18next';
5 4
 import { useDispatch, useSelector } from 'react-redux';
@@ -32,7 +31,7 @@ import LobbyParticipants from './LobbyParticipants';
32 31
 import MeetingParticipants from './MeetingParticipants';
33 32
 
34 33
 
35
-const useStyles = makeStyles()((theme: Theme) => {
34
+const useStyles = makeStyles()(theme => {
36 35
     return {
37 36
         container: {
38 37
             boxSizing: 'border-box' as const,

+ 1
- 2
react/features/participants-pane/components/web/RaisedHandIndicator.tsx Просмотреть файл

@@ -1,11 +1,10 @@
1
-import { Theme } from '@mui/material';
2 1
 import React from 'react';
3 2
 import { makeStyles } from 'tss-react/mui';
4 3
 
5 4
 import Icon from '../../../base/icons/components/Icon';
6 5
 import { IconRaiseHand } from '../../../base/icons/svg';
7 6
 
8
-const useStyles = makeStyles()((theme: Theme) => {
7
+const useStyles = makeStyles()(theme => {
9 8
     return {
10 9
         indicator: {
11 10
             backgroundColor: theme.palette.warning02,

+ 1
- 2
react/features/polls/components/web/PollAnswer.tsx Просмотреть файл

@@ -1,4 +1,3 @@
1
-import { Theme } from '@mui/material';
2 1
 import React from 'react';
3 2
 import { makeStyles } from 'tss-react/mui';
4 3
 
@@ -9,7 +8,7 @@ import { BUTTON_TYPES } from '../../../base/ui/constants.web';
9 8
 import { isSubmitAnswerDisabled } from '../../functions';
10 9
 import AbstractPollAnswer, { AbstractProps } from '../AbstractPollAnswer';
11 10
 
12
-const useStyles = makeStyles()((theme: Theme) => {
11
+const useStyles = makeStyles()(theme => {
13 12
     return {
14 13
         buttonMargin: {
15 14
             marginRight: theme.spacing(2)

+ 1
- 2
react/features/polls/components/web/PollCreate.tsx Просмотреть файл

@@ -1,5 +1,4 @@
1 1
 /* eslint-disable lines-around-comment */
2
-import { Theme } from '@mui/material';
3 2
 import React, { useCallback, useEffect, useRef, useState } from 'react';
4 3
 import { makeStyles } from 'tss-react/mui';
5 4
 
@@ -15,7 +14,7 @@ import AbstractPollCreate from '../AbstractPollCreate';
15 14
 // @ts-ignore
16 15
 import type { AbstractProps } from '../AbstractPollCreate';
17 16
 
18
-const useStyles = makeStyles()((theme: Theme) => {
17
+const useStyles = makeStyles()(theme => {
19 18
     return {
20 19
         buttonMargin: {
21 20
             marginRight: theme.spacing(2)

+ 1
- 2
react/features/prejoin/components/web/DropdownButton.tsx Просмотреть файл

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

+ 1
- 2
react/features/prejoin/components/web/dialogs/CallingDialog.tsx Просмотреть файл

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

+ 1
- 2
react/features/prejoin/components/web/dialogs/DialInDialog.tsx Просмотреть файл

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

+ 1
- 2
react/features/prejoin/components/web/dialogs/DialOutDialog.tsx Просмотреть файл

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

+ 1
- 2
react/features/prejoin/components/web/preview/DeviceStatus.tsx Просмотреть файл

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

+ 1
- 2
react/features/salesforce/components/web/RecordItem.tsx Просмотреть файл

@@ -1,4 +1,3 @@
1
-import { Theme } from '@mui/material';
2 1
 import React from 'react';
3 2
 import { useTranslation } from 'react-i18next';
4 3
 import { makeStyles } from 'tss-react/mui';
@@ -31,7 +30,7 @@ interface IProps {
31 30
     type: string;
32 31
 }
33 32
 
34
-const useStyles = makeStyles()((theme: Theme) => {
33
+const useStyles = makeStyles()(theme => {
35 34
     return {
36 35
         recordItem: {
37 36
             display: 'flex',

+ 1
- 2
react/features/salesforce/components/web/SalesforceLinkDialog.tsx Просмотреть файл

@@ -1,6 +1,5 @@
1 1
 /* eslint-disable lines-around-comment */
2 2
 import Spinner from '@atlaskit/spinner';
3
-import { Theme } from '@mui/material';
4 3
 import React, { useCallback } from 'react';
5 4
 import { useTranslation } from 'react-i18next';
6 5
 import { useDispatch } from 'react-redux';
@@ -17,7 +16,7 @@ import { useSalesforceLinkDialog } from '../../useSalesforceLinkDialog';
17 16
 
18 17
 import { RecordItem } from './RecordItem';
19 18
 
20
-const useStyles = makeStyles()((theme: Theme) => {
19
+const useStyles = makeStyles()(theme => {
21 20
     return {
22 21
         container: {
23 22
             minHeight: '450px',

+ 1
- 2
react/features/speaker-stats/components/web/SpeakerStats.tsx Просмотреть файл

@@ -1,4 +1,3 @@
1
-import { Theme } from '@mui/material';
2 1
 import React, { useCallback, useEffect } from 'react';
3 2
 import { useDispatch, useSelector } from 'react-redux';
4 3
 import { makeStyles } from 'tss-react/mui';
@@ -18,7 +17,7 @@ import SpeakerStatsLabels from './SpeakerStatsLabels';
18 17
 import SpeakerStatsList from './SpeakerStatsList';
19 18
 import SpeakerStatsSearch from './SpeakerStatsSearch';
20 19
 
21
-const useStyles = makeStyles()((theme: Theme) => {
20
+const useStyles = makeStyles()(theme => {
22 21
     return {
23 22
         speakerStats: {
24 23
             '& .row': {

+ 1
- 2
react/features/speaker-stats/components/web/SpeakerStatsLabels.tsx Просмотреть файл

@@ -1,4 +1,3 @@
1
-import { Theme } from '@mui/material';
2 1
 import React from 'react';
3 2
 import { useTranslation } from 'react-i18next';
4 3
 import { makeStyles } from 'tss-react/mui';
@@ -9,7 +8,7 @@ import { withPixelLineHeight } from '../../../base/styles/functions.web';
9 8
 import { Tooltip } from '../../../base/tooltip';
10 9
 import { FACE_EXPRESSIONS_EMOJIS } from '../../../face-landmarks/constants';
11 10
 
12
-const useStyles = makeStyles()((theme: Theme) => {
11
+const useStyles = makeStyles()(theme => {
13 12
     return {
14 13
         labels: {
15 14
             padding: '22px 0 7px 0',

+ 1
- 2
react/features/speaker-stats/components/web/SpeakerStatsList.tsx Просмотреть файл

@@ -1,5 +1,4 @@
1 1
 /* eslint-disable lines-around-comment */
2
-import { Theme } from '@mui/material';
3 2
 import React from 'react';
4 3
 import { makeStyles } from 'tss-react/mui';
5 4
 
@@ -11,7 +10,7 @@ import abstractSpeakerStatsList from '../AbstractSpeakerStatsList';
11 10
 // @ts-ignore
12 11
 import SpeakerStatsItem from './SpeakerStatsItem';
13 12
 
14
-const useStyles = makeStyles()((theme: Theme) => {
13
+const useStyles = makeStyles()(theme => {
15 14
     return {
16 15
         list: {
17 16
             marginTop: theme.spacing(3),

+ 1
- 2
react/features/speaker-stats/components/web/SpeakerStatsSearch.tsx Просмотреть файл

@@ -1,4 +1,3 @@
1
-import { Theme } from '@mui/material';
2 1
 import React, { useCallback, useState } from 'react';
3 2
 import { useTranslation } from 'react-i18next';
4 3
 import { useSelector } from 'react-redux';
@@ -11,7 +10,7 @@ import { withPixelLineHeight } from '../../../base/styles/functions.web';
11 10
 import { MOBILE_BREAKPOINT } from '../../constants';
12 11
 import { isSpeakerStatsSearchDisabled } from '../../functions';
13 12
 
14
-const useStyles = makeStyles()((theme: Theme) => {
13
+const useStyles = makeStyles()(theme => {
15 14
     return {
16 15
         speakerStatsSearchContainer: {
17 16
             position: 'relative'

+ 1
- 2
react/features/subtitles/components/LanguageListItem.web.tsx Просмотреть файл

@@ -1,4 +1,3 @@
1
-import { Theme } from '@mui/material';
2 1
 import React, { useCallback } from 'react';
3 2
 import { WithTranslation } from 'react-i18next';
4 3
 import { makeStyles } from 'tss-react/mui';
@@ -25,7 +24,7 @@ interface ILanguageListItemProps extends WithTranslation {
25 24
     selected?: boolean;
26 25
 }
27 26
 
28
-const useStyles = makeStyles()((theme: Theme) => {
27
+const useStyles = makeStyles()(theme => {
29 28
     return {
30 29
         itemContainer: {
31 30
             display: 'flex',

+ 1
- 2
react/features/subtitles/components/LanguageSelectorDialog.web.tsx Просмотреть файл

@@ -1,5 +1,4 @@
1 1
 /* eslint-disable lines-around-comment */
2
-import { Theme } from '@mui/material';
3 2
 import i18next from 'i18next';
4 3
 import React, { useCallback, useEffect, useState } from 'react';
5 4
 import { WithTranslation } from 'react-i18next';
@@ -27,7 +26,7 @@ interface ILanguageSelectorDialogProps extends WithTranslation {
27 26
     _translationLanguagesHead: Array<string>;
28 27
 }
29 28
 
30
-const useStyles = makeStyles()((theme: Theme) => {
29
+const useStyles = makeStyles()(theme => {
31 30
     return {
32 31
         paragraphWrapper: {
33 32
             fontSize: 14,

+ 1
- 2
react/features/toolbox/components/web/Drawer.tsx Просмотреть файл

@@ -1,4 +1,3 @@
1
-import { Theme } from '@mui/material';
2 1
 import React, { ReactElement, useCallback } from 'react';
3 2
 import { makeStyles } from 'tss-react/mui';
4 3
 
@@ -28,7 +27,7 @@ interface IProps {
28 27
     onClose: Function;
29 28
 }
30 29
 
31
-const useStyles = makeStyles()((theme: Theme) => {
30
+const useStyles = makeStyles()(theme => {
32 31
     return {
33 32
         drawer: {
34 33
             backgroundColor: theme.palette.ui01,

+ 1
- 2
react/features/video-menu/components/web/ParticipantContextMenu.tsx Просмотреть файл

@@ -1,6 +1,5 @@
1 1
 /* eslint-disable lines-around-comment */
2 2
 
3
-import { Theme } from '@mui/material';
4 3
 import React, { useCallback } from 'react';
5 4
 import { useTranslation } from 'react-i18next';
6 5
 import { useDispatch, useSelector } from 'react-redux';
@@ -106,7 +105,7 @@ interface IProps {
106 105
     thumbnailMenu?: boolean;
107 106
 }
108 107
 
109
-const useStyles = makeStyles()((theme: Theme) => {
108
+const useStyles = makeStyles()(theme => {
110 109
     return {
111 110
         text: {
112 111
             color: theme.palette.text02,

+ 1
- 2
react/features/video-quality/components/Slider.web.tsx Просмотреть файл

@@ -1,4 +1,3 @@
1
-import { Theme } from '@mui/material';
2 1
 import React from 'react';
3 2
 import { makeStyles } from 'tss-react/mui';
4 3
 
@@ -35,7 +34,7 @@ interface IProps {
35 34
     value: number;
36 35
 }
37 36
 
38
-const useStyles = makeStyles()((theme: Theme) => {
37
+const useStyles = makeStyles()(theme => {
39 38
     // keep the same height for all elements:
40 39
     // input, input track & fake track(div)
41 40
     const height = 6;

+ 2
- 4
react/features/virtual-background/components/UploadImageButton.tsx Просмотреть файл

@@ -1,4 +1,3 @@
1
-import { Theme } from '@mui/material';
2 1
 import React, { useCallback, useRef } from 'react';
3 2
 import { WithTranslation } from 'react-i18next';
4 3
 import { makeStyles } from 'tss-react/mui';
@@ -39,8 +38,7 @@ interface IProps extends WithTranslation {
39 38
     storedImages: Array<Image>;
40 39
 }
41 40
 
42
-// @ts-ignore
43
-const useStyles = makeStyles()((theme: Theme) => {
41
+const useStyles = makeStyles()(theme => {
44 42
     return {
45 43
         addBackground: {
46 44
             marginRight: theme.spacing(2)
@@ -50,7 +48,7 @@ const useStyles = makeStyles()((theme: Theme) => {
50 48
         },
51 49
         label: {
52 50
             fontSize: '14px',
53
-            fontWeight: '600',
51
+            fontWeight: 600,
54 52
             lineHeight: '20px',
55 53
             marginTop: theme.spacing(3),
56 54
             marginBottom: theme.spacing(2),

+ 1
- 2
react/features/virtual-background/components/VirtualBackgroundDialog.tsx Просмотреть файл

@@ -4,7 +4,6 @@ import Spinner from '@atlaskit/spinner';
4 4
 import Bourne from '@hapi/bourne';
5 5
 // @ts-ignore
6 6
 import { jitsiLocalStorage } from '@jitsi/js-utils/jitsi-local-storage';
7
-import { Theme } from '@mui/material';
8 7
 import React, { useCallback, useEffect, useState } from 'react';
9 8
 import { WithTranslation } from 'react-i18next';
10 9
 import { makeStyles } from 'tss-react/mui';
@@ -112,7 +111,7 @@ function _mapStateToProps(state: IReduxState): Object {
112 111
 
113 112
 const VirtualBackgroundDialog = translate(connect(_mapStateToProps)(VirtualBackground));
114 113
 
115
-const useStyles = makeStyles()((theme: Theme) => {
114
+const useStyles = makeStyles()(theme => {
116 115
     return {
117 116
         dialogContainer: {
118 117
             width: 'auto'

Загрузка…
Отмена
Сохранить