Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
feat(base/react): removed old web Switch component and exports (#12481)
Calinteodor7a8350356a03
diff --git a/react/features/base/react/components/native/index.js b/react/features/base/react/components/native/index.jsindex 79aaa170b1..888b3d8c37 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.tsxdeleted file mode 100644index cc5867304c..0000000000--- 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<Props> {- /**- * Implements React's {@link Component#render()}.- *- * @inheritdoc- * @returns {ReactElement}- */- render() {- const {- className,- disabled,- onValueChange,- value,- id,- ...props- } = this.props;-- return (- <div className = { className }>- <UISwitch- checked = { value }- disabled = { disabled }- id = { id }- onChange = { onValueChange }- { ...props } />- </div>- );- }-}diff --git a/react/features/base/react/components/web/index.js b/react/features/base/react/components/web/index.jsindex 4d47f0e8e5..acbfc5244c 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 } fromexport { 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';