@@ -53,33 +68,11 @@ class TextEllipsisComponent extends Component {
}
return (
-
{
- this.container = ref;
- }}
- >
+
{this.props.children}
);
}
}
-TextEllipsisComponent.propTypes = {
- children: PropTypes.node.isRequired,
- overlayTriggerProps: PropTypes.shape(_.omit(OverlayTrigger.propTypes, ['overlay'])),
- popoverProps: PropTypes.shape(Popover.propTypes),
-};
-
-TextEllipsisComponent.defaultProps = {
- overlayTriggerProps: {
- trigger: ['focus', 'hover'],
- placement: 'top',
- },
- popoverProps: {
- id: 'popover',
- placement: 'top',
- },
-};
-
export default TextEllipsisComponent;
diff --git a/src/lib/test-utils.js b/src/lib/test-utils.js
index c9b0fd3b6..9b6e6cc3f 100644
--- a/src/lib/test-utils.js
+++ b/src/lib/test-utils.js
@@ -5,11 +5,6 @@ export const runComponentDidMount = ({ shallowRenderer }) => {
shallowRenderer.update();
};
-export const runComponentWillReceiveProps = ({ shallowRenderer, nextProps }) => {
- shallowRenderer.instance().componentWillReceiveProps(nextProps);
- shallowRenderer.update();
-};
-
export const createAndMountComponent = component => {
const shallowRenderer = shallow(component);
runComponentDidMount({ shallowRenderer });