Skip to content

Commit

Permalink
re track
Browse files Browse the repository at this point in the history
  • Loading branch information
jljsj33 committed Dec 8, 2020
1 parent 0ce4c48 commit 724bf92
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions src/common/Track.tsx
Original file line number Diff line number Diff line change
@@ -1,17 +1,8 @@
import React from 'react';

const Track = (props) => {
const { className, included, vertical, style } = props;
let { length, offset, reverse } = props;
const {
className,
included,
vertical,
style,
length: l,
offset: o,
reverse: r,
...tagProps
} = props;

if (length < 0) {
reverse = !reverse;
Expand All @@ -35,7 +26,7 @@ const Track = (props) => {
...style,
...positonStyle,
};
return included ? <div className={className} style={elStyle} {...tagProps} /> : null;
return included ? <div className={className} style={elStyle} /> : null;
};

export default Track;

0 comments on commit 724bf92

Please sign in to comment.