File tree 1 file changed +1
-9
lines changed
1 file changed +1
-9
lines changed Original file line number Diff line number Diff line change @@ -50,14 +50,6 @@ class Swiper extends React.Component {
50
50
)
51
51
}
52
52
53
- hex2rgba = ( hex , opacity = 1 ) => {
54
- hex = hex . replace ( '#' , '' )
55
- const r = parseInt ( hex . substring ( 0 , 2 ) , 16 )
56
- const g = parseInt ( hex . substring ( 2 , 4 ) , 16 )
57
- const b = parseInt ( hex . substring ( 4 , 6 ) , 16 )
58
- return `'rgba(${ r } ,${ g } ,${ b } ,${ opacity } )'`
59
- }
60
-
61
53
calculateSecondCardIndex = firstCardIndex => {
62
54
const cardIndexAtLastIndex = firstCardIndex === this . state . cards . length - 1
63
55
return cardIndexAtLastIndex ? 0 : firstCardIndex + 1
@@ -148,7 +140,7 @@ class Swiper extends React.Component {
148
140
this . setState ( { labelType : LABEL_TYPES . NONE } )
149
141
}
150
142
151
- const { onTapCardDeadZone } = this . props ;
143
+ const { onTapCardDeadZone } = this . props
152
144
if (
153
145
this . _animatedValueX < - onTapCardDeadZone ||
154
146
this . _animatedValueX > onTapCardDeadZone ||
You can’t perform that action at this time.
0 commit comments