Skip to content

Commit

Permalink
Merge pull request #90 from newrelic/deprecation-fix
Browse files Browse the repository at this point in the history
chore: removes deprecated icon-sizetype
  • Loading branch information
John P Vajda authored Jul 28, 2021
2 parents 568cb2a + e9b7682 commit 498916b
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/components/DetailPanel/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class Header extends React.Component {
description,
defaultOnClose,
defaultOnMinimize,
onMinimize
onMinimize,
} = this.props;

return (
Expand All @@ -33,7 +33,6 @@ class Header extends React.Component {
<Icon
type={Icon.TYPE.INTERFACE__CHEVRON__CHEVRON_RIGHT__WEIGHT_BOLD}
color="#000E0E"
sizeType={Icon.SIZE_TYPE.SMALL}
className={styles['minimize-button-icon']}
/>
</span>
Expand All @@ -49,20 +48,20 @@ export class DetailPanel extends React.Component {
description: PropTypes.string,
children: PropTypes.node.isRequired,
onClose: PropTypes.func,
onMinimize: PropTypes.func
onMinimize: PropTypes.func,
};

static defaultProps = {
title: 'Detail panel title',
description: 'Nulla quis tortor orci. Etiam at risus et justo dignissim.'
description: 'Nulla quis tortor orci. Etiam at risus et justo dignissim.',
};

constructor(props) {
super(props);

this.state = {
closed: false,
minimized: false
minimized: false,
};

this.handleCloseButton = this.handleCloseButton.bind(this);
Expand All @@ -79,7 +78,7 @@ export class DetailPanel extends React.Component {

handleMinimizeButton() {
this.setState(prevState => ({
minimized: !prevState.minimized
minimized: !prevState.minimized,
}));
}

Expand Down

0 comments on commit 498916b

Please sign in to comment.