From e37208b8ce3a27f65dd95a90f2ce23b5a090c74a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ram=C3=B3n=20Souza?= Date: Thu, 4 Nov 2021 14:19:38 +0000 Subject: [PATCH] convert poll component --- .../imports/ui/components/poll/component.jsx | 155 +++--- .../imports/ui/components/poll/styles.js | 403 ++++++++++++++++ .../imports/ui/components/poll/styles.scss | 441 ------------------ .../stylesheets/styled-components/general.js | 4 + .../stylesheets/styled-components/palette.js | 4 +- 5 files changed, 477 insertions(+), 530 deletions(-) create mode 100644 bigbluebutton-html5/imports/ui/components/poll/styles.js delete mode 100644 bigbluebutton-html5/imports/ui/components/poll/styles.scss diff --git a/bigbluebutton-html5/imports/ui/components/poll/component.jsx b/bigbluebutton-html5/imports/ui/components/poll/component.jsx index aadbfd4a80..03cb5ad251 100644 --- a/bigbluebutton-html5/imports/ui/components/poll/component.jsx +++ b/bigbluebutton-html5/imports/ui/components/poll/component.jsx @@ -4,12 +4,9 @@ import { defineMessages, injectIntl } from 'react-intl'; import { withModalMounter } from '/imports/ui/components/modal/service'; import _ from 'lodash'; import { Session } from 'meteor/session'; -import cx from 'classnames'; -import Button from '/imports/ui/components/button/component'; -import Checkbox from '/imports/ui/components/checkbox/component'; import Toggle from '/imports/ui/components/switch/component'; import LiveResult from './live-result/component'; -import { styles } from './styles.scss'; +import Styled from './styles'; import { PANELS, ACTIONS } from '../layout/enums'; import DragAndDrop from './dragAndDrop/component'; import { alertScreenReader } from '/imports/utils/dom-utils'; @@ -353,10 +350,10 @@ class Poll extends Component { const { intl } = this.props; return ( - + {status ? intl.formatMessage(intlMessages.on) : intl.formatMessage(intlMessages.off)} - + ); } @@ -388,20 +385,18 @@ class Poll extends Component { justifyContent: 'spaceBetween', }} > - this.handleInputChange(e, i)} maxLength={MAX_INPUT_CHARS} /> {i > 1 ? ( <> -