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.

ConferenceTimerDisplay.tsx 1.0KB

12345678910111213141516171819202122232425262728293031323334353637
  1. import React from 'react';
  2. import { makeStyles } from 'tss-react/mui';
  3. import { withPixelLineHeight } from '../../../base/styles/functions.web';
  4. import { IDisplayProps } from '../ConferenceTimer';
  5. const useStyles = makeStyles()(theme => {
  6. return {
  7. timer: {
  8. ...withPixelLineHeight(theme.typography.labelRegular),
  9. color: theme.palette.text01,
  10. padding: '6px 8px',
  11. backgroundColor: 'rgba(0, 0, 0, 0.8)',
  12. boxSizing: 'border-box',
  13. height: '28px',
  14. borderRadius: `0 ${theme.shape.borderRadius}px ${theme.shape.borderRadius}px 0`,
  15. marginRight: '2px',
  16. '@media (max-width: 300px)': {
  17. display: 'none'
  18. }
  19. }
  20. };
  21. });
  22. /**
  23. * Returns web element to be rendered.
  24. *
  25. * @returns {ReactElement}
  26. */
  27. export default function ConferenceTimerDisplay({ timerValue, textStyle: _textStyle }: IDisplayProps) {
  28. const { classes } = useStyles();
  29. return (
  30. <span className = { classes.timer }>{ timerValue }</span>
  31. );
  32. }