|
|
|
@ -1,8 +1,6 @@ |
|
|
|
|
import React, { Component } from 'react' |
|
|
|
|
import PropTypes from 'prop-types' |
|
|
|
|
import classnames from 'classnames' |
|
|
|
|
import { ENVIRONMENT_TYPE_POPUP } from '../../../../../app/scripts/lib/enums' |
|
|
|
|
import { getEnvironmentType } from '../../../../../app/scripts/lib/util' |
|
|
|
|
import { |
|
|
|
|
STATUS_CONNECTED, |
|
|
|
|
STATUS_CONNECTED_TO_ANOTHER_ACCOUNT, |
|
|
|
@ -50,10 +48,7 @@ export default class ConnectedStatusIndicator extends Component { |
|
|
|
|
|
|
|
|
|
render () { |
|
|
|
|
return ( |
|
|
|
|
<div className={classnames('connected-status-indicator', { |
|
|
|
|
invisible: getEnvironmentType() !== ENVIRONMENT_TYPE_POPUP, |
|
|
|
|
})} |
|
|
|
|
> |
|
|
|
|
<div className="connected-status-indicator"> |
|
|
|
|
{ this.renderStatusCircle() } |
|
|
|
|
{ this.renderStatusText() } |
|
|
|
|
</div> |
|
|
|
|