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(toolbox/native): update CustomOptionButton props
Calin-Teodor5c65446ef462
diff --git a/react/features/toolbox/components/native/CustomOptionButton.tsx b/react/features/toolbox/components/native/CustomOptionButton.tsxindex c236680e9e..988fe28ede 100644--- a/react/features/toolbox/components/native/CustomOptionButton.tsx+++ b/react/features/toolbox/components/native/CustomOptionButton.tsx@@ -10,6 +10,7 @@ import styles from './styles';interface IProps extends AbstractButtonProps {+ backgroundColor?: string;icon: any;id?: string;text: string;@@ -21,6 +22,7 @@ interface IProps extends AbstractButtonProps {* @returns {Component}*/class CustomOptionButton extends AbstractButton<IProps> {+ backgroundColor = this.props.backgroundColor;iconSrc = this.props.icon;id = this.props.id;text = this.props.text;@@ -48,8 +50,7 @@ class CustomOptionButton extends AbstractButton<IProps> {= (<Imagesource = {{ uri: this.iconSrc }}- style = { styles.iconImageStyles }- tintColor = { 'white' } />);+ style = { styles.iconImageStyles } />);}return iconComponent;diff --git a/react/features/toolbox/components/native/OverflowMenu.tsx b/react/features/toolbox/components/native/OverflowMenu.tsxindex 84cb421b99..0ddef72487 100644--- a/react/features/toolbox/components/native/OverflowMenu.tsx+++ b/react/features/toolbox/components/native/OverflowMenu.tsx@@ -228,11 +228,10 @@ class OverflowMenu extends PureComponent<IProps, IState> {return (<>{- _customToolbarButtons.map(({ id, text, icon, ...rest }) => (+ _customToolbarButtons.map(({ id, text, icon, backgroundColor }) => (<CustomOptionButton- { ...rest }{ ...topButtonProps }-+ backgroundColor = { backgroundColor }/* eslint-disable react/jsx-no-bind */handleClick = { () =>dispatch(customOverflowMenuButtonPressed(id, text))