Skip to content

Commit 4678ca9

Browse files
committed
Removes unnecessary ternary on style prop
1 parent 4fe30ed commit 4678ca9

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

src/Link/index.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,10 @@ export default class Link extends React.PureComponent {
5656
}
5757

5858
render() {
59-
const { transitions } = this.props;
6059
return (
6160
<path
6261
ref={(l) => { this.link = l; }}
6362
className="linkBase"
64-
style={transitions.enabled ? undefined : { opacity: 1 }}
6563
d={this.expandPath()}
6664
/>
6765
);

src/Node/index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@ export default class Node extends React.Component {
8585
<g
8686
id={nodeData.id}
8787
ref={(n) => { this.node = n; }}
88-
style={transitions.enabled ? undefined : { opacity: 1 }}
8988
className={nodeData._children ? 'nodeBase' : 'leafNodeBase'}
9089
transform={transform}
9190
onClick={this.handleClick}

0 commit comments

Comments
 (0)