Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

feat(base/ui/native): removed unused files and updated imports (#12477)

Calinteodor67cf6e6d189a
diff --git a/react/features/base/react/components/native/Switch.js b/react/features/base/react/components/native/Switch.js
deleted file mode 100644
index ee32d4bc32..0000000000
--- a/react/features/base/react/components/native/Switch.js
+++ /dev/null
@@ -1,3 +0,0 @@
-// @flow
-
-export { Switch as default } from 'react-native';
diff --git a/react/features/base/react/components/native/IconButton.tsx b/react/features/base/ui/components/native/IconButton.tsx
similarity index 88%
rename from react/features/base/react/components/native/IconButton.tsx
rename to react/features/base/ui/components/native/IconButton.tsx
index 7b03f16537..724ba9be18 100644
--- a/react/features/base/react/components/native/IconButton.tsx
+++ b/react/features/base/ui/components/native/IconButton.tsx
@@ -2,12 +2,10 @@ import React from 'react';
import { TouchableRipple } from 'react-native-paper';
import Icon from '../../../icons/components/Icon';
-import BaseTheme from '../../../ui/components/BaseTheme.native';
-import { BUTTON_TYPES } from '../../../ui/constants';
-import { IIconButtonProps } from '../../types';
-
-// @ts-ignore
-import styles from './styles';
+import styles from '../../../react/components/native/styles';
+import { IIconButtonProps } from '../../../react/types';
+import { BUTTON_TYPES } from '../../constants';
+import BaseTheme from '../BaseTheme.native';
const IconButton: React.FC<IIconButtonProps> = ({
diff --git a/react/features/base/ui/components/native/index.ts b/react/features/base/ui/components/native/index.ts
deleted file mode 100644
index eae9c8e3b3..0000000000
--- a/react/features/base/ui/components/native/index.ts
+++ /dev/null
@@ -1 +0,0 @@
-export { default as Button } from './Button';
diff --git a/react/features/participants-pane/components/native/ParticipantsPaneFooter.tsx b/react/features/participants-pane/components/native/ParticipantsPaneFooter.tsx
index eb8a33559f..b68a661dc1 100644
--- a/react/features/participants-pane/components/native/ParticipantsPaneFooter.tsx
+++ b/react/features/participants-pane/components/native/ParticipantsPaneFooter.tsx
@@ -1,21 +1,16 @@
-/* eslint-disable lines-around-comment */
import React, { useCallback } from 'react';
import { View } from 'react-native';
import { useDispatch, useSelector } from 'react-redux';
import { openDialog, openSheet } from '../../../base/dialog/actions';
import { IconHorizontalPoints } from '../../../base/icons/svg';
-import IconButton from '../../../base/react/components/native/IconButton';
import Button from '../../../base/ui/components/native/Button';
+import IconButton from '../../../base/ui/components/native/IconButton';
import { BUTTON_TYPES } from '../../../base/ui/constants';
-import MuteEveryoneDialog
-// @ts-ignore
- from '../../../video-menu/components/native/MuteEveryoneDialog';
+import MuteEveryoneDialog from '../../../video-menu/components/native/MuteEveryoneDialog';
import { isMoreActionsVisible, isMuteAllVisible } from '../../functions';
-// @ts-ignore
import { ContextMenuMore } from './ContextMenuMore';
-// @ts-ignore
import styles from './styles';
diff --git a/react/features/toolbox/components/native/HangupMenuButton.tsx b/react/features/toolbox/components/native/HangupMenuButton.tsx
index 43aebb0738..297c0ee8dd 100644
--- a/react/features/toolbox/components/native/HangupMenuButton.tsx
+++ b/react/features/toolbox/components/native/HangupMenuButton.tsx
@@ -3,7 +3,7 @@ import { useDispatch } from 'react-redux';
import { openSheet } from '../../../base/dialog/actions';
import { IconHangup } from '../../../base/icons/svg';
-import IconButton from '../../../base/react/components/native/IconButton';
+import IconButton from '../../../base/ui/components/native/IconButton';
import { BUTTON_TYPES } from '../../../base/ui/constants';
import HangupMenu from './HangupMenu';