Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

RaisedHandIndicator.js 1.3KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /* @flow */
  2. import React from 'react';
  3. import { connect } from '../../../base/redux';
  4. import AbstractRaisedHandIndicator, {
  5. type Props as AbstractProps,
  6. _mapStateToProps
  7. } from '../AbstractRaisedHandIndicator';
  8. import BaseIndicator from './BaseIndicator';
  9. /**
  10. * The type of the React {@code Component} props of {@link RaisedHandIndicator}.
  11. */
  12. type Props = AbstractProps & {
  13. /**
  14. * The font-size for the icon.
  15. */
  16. iconSize: number,
  17. /**
  18. * From which side of the indicator the tooltip should appear from.
  19. */
  20. tooltipPosition: string
  21. };
  22. /**
  23. * Thumbnail badge showing that the participant would like to speak.
  24. *
  25. * @extends Component
  26. */
  27. class RaisedHandIndicator extends AbstractRaisedHandIndicator<Props> {
  28. /**
  29. * Renders the platform specific indicator element.
  30. *
  31. * @returns {React$Element<*>}
  32. */
  33. _renderIndicator() {
  34. return (
  35. <BaseIndicator
  36. className = 'raisehandindicator indicator show-inline'
  37. iconClassName = 'icon-raised-hand indicatoricon'
  38. iconSize = { `${this.props.iconSize}px` }
  39. tooltipKey = 'raisedHand'
  40. tooltipPosition = { this.props.tooltipPosition } />
  41. );
  42. }
  43. }
  44. export default connect(_mapStateToProps)(RaisedHandIndicator);