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