mirror of
https://github.com/weaveworks/scope.git
synced 2026-03-03 02:00:43 +00:00
Fixed the failing test.
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
import debug from 'debug';
|
||||
import React from 'react';
|
||||
import classNames from 'classnames';
|
||||
import PropTypes from 'prop-types';
|
||||
import { connect } from 'react-redux';
|
||||
import { Map as makeMap } from 'immutable';
|
||||
import { noop } from 'lodash';
|
||||
|
||||
import { clickCloseDetails, clickShowTopologyForNode } from '../actions/app-actions';
|
||||
import { brightenColor, getNeutralColor, getNodeColorDark } from '../utils/color-utils';
|
||||
@@ -289,6 +291,14 @@ class NodeDetails extends React.Component {
|
||||
}
|
||||
}
|
||||
|
||||
NodeDetails.propTypes = {
|
||||
renderNodeDetailsExtras: PropTypes.func,
|
||||
};
|
||||
|
||||
NodeDetails.defaultProps = {
|
||||
renderNodeDetailsExtras: noop,
|
||||
};
|
||||
|
||||
function mapStateToProps(state, ownProps) {
|
||||
const currentTopologyId = state.get('currentTopologyId');
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user