Skip to content
This repository was archived by the owner on Jan 19, 2023. It is now read-only.

Commit 78c31ba

Browse files
author
fritz-c
committed
Code style fixes
1 parent 3568d83 commit 78c31ba

File tree

2 files changed

+9
-12
lines changed

2 files changed

+9
-12
lines changed

src/ReactImageLightbox.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -842,8 +842,7 @@ var ReactImageLightbox = React.createClass({
842842
return;
843843
}
844844

845-
var imageStyle = [Styles.image(this.props.animationDuration), baseStyle, transitionStyle];
846-
var fitSizes = {};
845+
var imageStyle = [Styles.image, baseStyle, transitionStyle];
847846
if (this.state.zoomLevel > Constant.MIN_ZOOM_LEVEL) {
848847
imageStyle.push({ cursor: 'move' });
849848
}
@@ -942,7 +941,7 @@ var ReactImageLightbox = React.createClass({
942941
<Portal>
943942
<StyleRoot>
944943
<div // Floating modal with closing animations
945-
className={"outer" + (this.state.isClosing ? ' closing' : '')}
944+
className={'outer' + (this.state.isClosing ? ' closing' : '')}
946945
onWheel={this.handleOuterMousewheel}
947946
onMouseMove={this.handleOuterMouseMove}
948947
onMouseDown={this.handleOuterMouseDown}

src/Styles.js

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,13 @@ var styles = {
3939
bottom : 0,
4040
},
4141

42-
image: function(duration) {
43-
return {
44-
position : 'absolute',
45-
top : 0,
46-
bottom : 0,
47-
margin : 'auto',
48-
maxWidth : '100%',
49-
maxHeight : '100%',
50-
};
42+
image: {
43+
position : 'absolute',
44+
top : 0,
45+
bottom : 0,
46+
margin : 'auto',
47+
maxWidth : '100%',
48+
maxHeight : '100%',
5149
},
5250
imagePrev: {
5351
left: '-100%',

0 commit comments

Comments
 (0)