Skip to content

Commit d912bea

Browse files
committed
refactor: types
1 parent 4691d8a commit d912bea

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Carousel.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@ function Carousel<T>(
5050
panGestureHandlerProps,
5151
});
5252

53-
const width: number = props.vertical ? 0 : Math.round(props.width || 0);
54-
const height: number = props.vertical ? Math.round(props.height || 0) : 0;
55-
const size: number = vertical ? height : width;
53+
const width = props.vertical ? 0 : Math.round(props.width || 0);
54+
const height = props.vertical ? Math.round(props.height || 0) : 0;
55+
const size = vertical ? height : width;
5656

5757
const layoutStyle = React.useMemo(() => {
5858
return {

0 commit comments

Comments
 (0)