You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

JoinMeetingDialog.tsx 2.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. import { noop } from 'lodash-es';
  2. import React from 'react';
  3. import { useTranslation } from 'react-i18next';
  4. import { makeStyles } from 'tss-react/mui';
  5. import ToolboxButtonWithPopup from '../../../base/toolbox/components/web/ToolboxButtonWithPopup';
  6. import Dialog from '../../../base/ui/components/web/Dialog';
  7. import { RaiseHandButton } from '../../../reactions/components/web/RaiseHandButton';
  8. const useStyles = makeStyles()(theme => {
  9. return {
  10. raiseHand: {
  11. alignItems: 'center',
  12. display: 'flex',
  13. flexDirection: 'column',
  14. marginTop: theme.spacing(3),
  15. marginBottom: theme.spacing(3),
  16. pointerEvents: 'none'
  17. },
  18. raiseHandTooltip: {
  19. border: '1px solid #444',
  20. borderRadius: theme.shape.borderRadius,
  21. paddingBottom: theme.spacing(1),
  22. paddingTop: theme.spacing(1),
  23. paddingLeft: theme.spacing(2),
  24. paddingRight: theme.spacing(2)
  25. },
  26. raiseHandButton: {
  27. display: 'inline-block',
  28. marginTop: theme.spacing(2),
  29. marginBottom: theme.spacing(2),
  30. position: 'relative'
  31. }
  32. };
  33. });
  34. /**
  35. * Component that renders the join meeting dialog for visitors.
  36. *
  37. * @returns {JSX.Element}
  38. */
  39. export default function JoinMeetingDialog() {
  40. const { t } = useTranslation();
  41. const { classes } = useStyles();
  42. return (
  43. <Dialog
  44. cancel = {{ hidden: true }}
  45. ok = {{ translationKey: 'dialog.Ok' }}
  46. titleKey = 'visitors.joinMeeting.title'>
  47. <div className = 'join-meeting-dialog'>
  48. <p>{t('visitors.joinMeeting.description')}</p>
  49. <div className = { classes.raiseHand }>
  50. <p className = { classes.raiseHandTooltip }>{t('visitors.joinMeeting.raiseHand')}</p>
  51. <div className = { classes.raiseHandButton }>
  52. <ToolboxButtonWithPopup
  53. onPopoverClose = { noop }
  54. onPopoverOpen = { noop }
  55. popoverContent = { null }
  56. visible = { false }>
  57. {/* @ts-ignore */}
  58. <RaiseHandButton
  59. disableClick = { true }
  60. raisedHand = { true } />
  61. </ToolboxButtonWithPopup>
  62. </div>
  63. </div>
  64. <p>{t('visitors.joinMeeting.wishToSpeak')}</p>
  65. </div>
  66. </Dialog>
  67. );
  68. }