Skip to content

Commit b711885

Browse files
committed
revert last changes
1 parent 58311eb commit b711885

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

src/components/containers/TraceRequiredPanel.js

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,23 +10,21 @@ class TraceRequiredPanel extends Component {
1010

1111
render() {
1212
const {localize: _} = this.context;
13-
const {children, heading, beforeMessage, afterMessage, forceEmpty, ...rest} = this.props;
13+
const {children, ...rest} = this.props;
1414

1515
if (!this.props.visible) {
1616
return null;
1717
}
1818

19-
return !forceEmpty && this.hasTrace() ? (
19+
return this.hasTrace() ? (
2020
<LayoutPanel {...rest}>{children}</LayoutPanel>
2121
) : (
22-
<PanelEmpty heading={heading || _("Looks like there aren't any traces defined yet.")}>
23-
{beforeMessage && <p>{beforeMessage}</p>}
22+
<PanelEmpty heading={_("Looks like there aren't any traces defined yet.")}>
2423
<p>
2524
{_('Go to the ')}
2625
<a onClick={() => this.context.setPanel('Structure', 'Traces')}>{_('Traces')}</a>
2726
{_(' panel under Structure to define traces.')}
2827
</p>
29-
{afterMessage && <p>{afterMessage}</p>}
3028
</PanelEmpty>
3129
);
3230
}
@@ -35,10 +33,6 @@ class TraceRequiredPanel extends Component {
3533
TraceRequiredPanel.propTypes = {
3634
children: PropTypes.node,
3735
visible: PropTypes.bool,
38-
heading: PropTypes.string,
39-
beforeMessage: PropTypes.string,
40-
afterMessage: PropTypes.string,
41-
forceEmpty: PropTypes.bool,
4236
};
4337

4438
TraceRequiredPanel.defaultProps = {

0 commit comments

Comments
 (0)