Files
jitsi-meet/react/features/conference/components/native/RaisedHandsCountLabel.js
Calinteodor 93566e313e feat(native): Last mobile release UI fixes (#12603)
* feat(base/modal): order props alphabetically

* feat(base/ui): added ripple color for tertiary button

* feat(prejoin): removed autoFocus from input and adjusted content

* feat(conference): adjusted RaisedHandCountLabel and added extra code spaces

* feat(prejoin): fixed content to fit tablets

* feat(conference): moved header button styles to navigation styles

* feat(mobile/navigation): updated header navigation button styles

* feat(prejoin): updated elements width, removed left inset
2022-11-22 18:13:36 +02:00

25 lines
793 B
JavaScript

import React from 'react';
import { useSelector } from 'react-redux';
import { IconRaiseHand } from '../../../base/icons';
import { Label } from '../../../base/label';
import BaseTheme from '../../../base/ui/components/BaseTheme.native';
import styles from './styles';
const RaisedHandsCountLabel = () => {
const raisedHandsCount = useSelector(state =>
(state['features/base/participants'].raisedHandsQueue || []).length);
return raisedHandsCount > 0 && (
<Label
icon = { IconRaiseHand }
iconColor = { BaseTheme.palette.uiBackground }
style = { styles.raisedHandsCountLabel }
text = { raisedHandsCount }
textStyle = { styles.raisedHandsCountLabelText } />
);
};
export default RaisedHandsCountLabel;