Skip to content

Commit 74d870d

Browse files
author
ben
committed
+customOverlay stuff
1 parent 57eb3dd commit 74d870d

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

src/Image.js

+8-7
Original file line numberDiff line numberDiff line change
@@ -89,13 +89,14 @@ class Image extends Component {
8989
</div>;
9090
});
9191

92-
var customOverlay = typeof this.props.item.customOverlay === 'undefined' ? <noscript/> :
93-
<div style={{
94-
pointerEvents: "none",
95-
opacity: this.state.hover ? 1 : 0,
96-
position: "absolute",
97-
height: "100%",
98-
width: "100%"}}>
92+
var customOverlay = (typeof this.props.item.customOverlay === 'undefined')
93+
? <noscript/> :
94+
<div style={{
95+
pointerEvents: "none",
96+
opacity: this.state.hover ? 1 : 0,
97+
position: "absolute",
98+
height: "100%",
99+
width: "100%"}}>
99100
{this.props.item.customOverlay}
100101
</div>;
101102

0 commit comments

Comments
 (0)