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.

JoinMeetingDialog.tsx 2.7KB

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