feat(deps): update atlaskit/tabs to 8.0.8

There are (at least) two changes that are breaking:
- defaultTab is gone
- The re-rendering logic looks to have been re-written so that
  passing in a new array of tabs causes a re-render, which can
  reset the currently selected tab.

The fixes involved removing defaultTab from each tab configuration,
as it is no longer respected anyway. Also, instead of letting Tabs
be uncontrolled and allowing it to set its own selected, which
would result in the first tab automatically being selected on
Tabs re-render, use Tabs a controlled prop to dicate which
tab is selected; this is accomplished by specifying a selected
prop.
This commit is contained in:
Leonard Kim
2018-09-14 14:50:08 -05:00
committed by yanas
parent 7b71482b03
commit 7c88de20fe
7 changed files with 80 additions and 52 deletions
@@ -1,12 +1,12 @@
import PropTypes from 'prop-types';
import React, { PureComponent } from 'react';
import React, { Component } from 'react';
import { JitsiTrackEvents } from '../../base/lib-jitsi-meet';
/**
* React component for displaying a audio level meter for a JitsiLocalTrack.
*/
class AudioInputPreview extends PureComponent {
class AudioInputPreview extends Component {
/**
* AudioInputPreview component's property types.
*
@@ -53,8 +53,10 @@ class AudioInputPreview extends PureComponent {
* @returns {void}
*/
componentWillReceiveProps(nextProps) {
this._listenForAudioUpdates(nextProps.track);
this._updateAudioLevel(0);
if (nextProps.track !== this.props.track) {
this._listenForAudioUpdates(nextProps.track);
this._updateAudioLevel(0);
}
}
/**