Skip to content

Commit dae2c31

Browse files
committed
Fader - FaderPosition enum remove LEFT and RIGHT cases
1 parent 290ef8b commit dae2c31

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/components/fader/index.tsx

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,7 @@ import Image, {ImageProps} from '../image';
66
import {Colors} from 'style';
77

88
export enum FaderPosition {
9-
/**
10-
* @deprecated please use START instead
11-
*/
12-
LEFT = 'LEFT',
139
START = 'START',
14-
/**
15-
* @deprecated please use END instead
16-
*/
17-
RIGHT = 'RIGHT',
1810
END = 'END',
1911
TOP = 'TOP',
2012
BOTTOM = 'BOTTOM'
@@ -57,13 +49,11 @@ function Fader(props: FaderProps) {
5749
const styles = useMemo(() => {
5850
let containerStyle, imageStyle, imageSource;
5951
switch (position) {
60-
case FaderPosition.LEFT:
6152
case FaderPosition.START:
6253
containerStyle = {...staticStyles.containerLeft, width: size};
6354
imageStyle = {height: '100%', width: size};
6455
imageSource = require('./gradientLeft.png');
6556
break;
66-
case FaderPosition.RIGHT:
6757
case FaderPosition.END:
6858
containerStyle = {...staticStyles.containerRight, width: size};
6959
imageStyle = {height: '100%', width: size};

0 commit comments

Comments
 (0)