chore(audio): update some code checks done by sonarcloud
This commit is contained in:
parent
1890cccae1
commit
2801848789
@ -4,7 +4,7 @@ import Auth from '/imports/ui/services/auth';
|
||||
import { defineMessages, injectIntl } from 'react-intl';
|
||||
import PropTypes from 'prop-types';
|
||||
import Button from '/imports/ui/components/button/component';
|
||||
import ButtonEmoji from '/imports/ui/components/button/button-emoji/component';
|
||||
import ButtonEmoji from '/imports/ui/components/button/button-emoji/ButtonEmoji';
|
||||
import Dropdown from '/imports/ui/components/dropdown/component';
|
||||
import withShortcutHelper from '/imports/ui/components/shortcut-help/service';
|
||||
import cx from 'classnames';
|
||||
|
@ -5,7 +5,7 @@ import TooltipContainer from '/imports/ui/components/tooltip/container';
|
||||
import { styles } from './styles';
|
||||
import Icon from '../icon/component';
|
||||
import BaseButton from './base/component';
|
||||
import ButtonEmoji from './button-emoji/component';
|
||||
import ButtonEmoji from './button-emoji/ButtonEmoji';
|
||||
|
||||
const SIZES = [
|
||||
'jumbo', 'lg', 'md', 'sm',
|
||||
|
@ -84,10 +84,8 @@ export default class DropdownTrigger extends Component {
|
||||
triggerComponentProps);
|
||||
|
||||
const ButtonComponent = React.Children.only(children);
|
||||
const ButtonComponentBounded = React.cloneElement(ButtonComponent,
|
||||
return React.cloneElement(ButtonComponent,
|
||||
buttonComponentProps, TriggerComponentBounded);
|
||||
|
||||
return ButtonComponentBounded;
|
||||
}
|
||||
|
||||
buttonComponentProps.className = cx(children.props.className, className);
|
||||
|
@ -9,7 +9,8 @@ import 'tippy.js/dist/svg-arrow.css';
|
||||
import 'tippy.js/animations/shift-away.css';
|
||||
import './bbbtip.css';
|
||||
import BaseButton from '/imports/ui/components/button/base/component';
|
||||
import ButtonEmoji from '/imports/ui/components/button/button-emoji/component';
|
||||
import ButtonEmoji from
|
||||
'/imports/ui/components/button/button-emoji/ButtonEmoji';
|
||||
|
||||
const ANIMATION_DURATION = 350;
|
||||
const ANIMATION_DELAY = [150, 50];
|
||||
@ -158,10 +159,8 @@ class Tooltip extends Component {
|
||||
const ParentComponent = React.Children.only(children);
|
||||
const updatedChildren = [WrappedComponentBound, ...otherChildren];
|
||||
|
||||
const ParentComponentBound = React.cloneElement(ParentComponent, null,
|
||||
return React.cloneElement(ParentComponent, null,
|
||||
updatedChildren);
|
||||
|
||||
return ParentComponentBound;
|
||||
}
|
||||
|
||||
WrappedComponent = React.Children.only(children);
|
||||
|
Loading…
Reference in New Issue
Block a user