diff --git a/react/features/base/react/components/native/index.js b/react/features/base/react/components/native/index.js index 79aaa170b..888b3d8c3 100644 --- a/react/features/base/react/components/native/index.js +++ b/react/features/base/react/components/native/index.js @@ -17,6 +17,5 @@ export { default as NavigateSectionListSectionHeader } export { default as Pressable } from './Pressable'; export { default as SectionList } from './SectionList'; export { default as SlidingView } from './SlidingView'; -export { default as Switch } from './Switch'; export { default as Text } from './Text'; export { default as TintedView } from './TintedView'; diff --git a/react/features/base/react/components/web/Switch.tsx b/react/features/base/react/components/web/Switch.tsx deleted file mode 100644 index cc5867304..000000000 --- a/react/features/base/react/components/web/Switch.tsx +++ /dev/null @@ -1,64 +0,0 @@ -import React, { Component } from 'react'; - -import UISwitch from '../../../ui/components/web/Switch'; - -type Props = { - - /** - * CSS class name. - */ - className: string; - - /** - * Indicates whether the switch is disabled or not. - */ - disabled: boolean; - - /** - * ID of the toggle. - */ - id: string; - - /** - * Handler called when the user presses the switch. - */ - onValueChange: (checked?: boolean) => void; - - /** - * The current value. - */ - value: boolean; -}; - -/** - * Renders a boolean input. - */ -export default class Switch extends Component { - /** - * Implements React's {@link Component#render()}. - * - * @inheritdoc - * @returns {ReactElement} - */ - render() { - const { - className, - disabled, - onValueChange, - value, - id, - ...props - } = this.props; - - return ( -
- -
- ); - } -} diff --git a/react/features/base/react/components/web/index.js b/react/features/base/react/components/web/index.js index 4d47f0e8e..acbfc5244 100644 --- a/react/features/base/react/components/web/index.js +++ b/react/features/base/react/components/web/index.js @@ -14,6 +14,5 @@ export { default as NavigateSectionListItem } from export { default as NavigateSectionListSectionHeader } from './NavigateSectionListSectionHeader'; export { default as SectionList } from './SectionList'; -export { default as Switch } from './Switch'; export { default as Text } from './Text'; export { default as Watermarks } from './Watermarks';