explicitly import lodash where it is used

This commit is contained in:
Anton Georgiev 2020-02-26 14:48:40 -05:00
parent dbc997cc85
commit f1fc72bc01
2 changed files with 5 additions and 2 deletions

View File

@ -1,6 +1,7 @@
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import cx from 'classnames';
import _ from 'lodash';
import { styles } from '../styles';
const propTypes = {
@ -14,7 +15,7 @@ export default class DropdownListTitle extends Component {
}
render() {
const { className, description } = this.props;
const { className } = this.props;
return (
<li className={cx(styles.title, className)} aria-hidden>

View File

@ -1,3 +1,5 @@
import _ from 'lodash';
const MEDIA = Meteor.settings.public.media;
const STUN_TURN_FETCH_URL = MEDIA.stunTurnServersFetchAddress;
@ -33,7 +35,7 @@ const fetchStunTurnServers = function (sessionToken) {
}
return response;
});
}
};
const fetchWebRTCMappedStunTurnServers = function (sessionToken) {
return new Promise(async (resolve, reject) => {