pull/713/head
Mikael Finstad 5 years ago
parent 9bf918db98
commit 0d5ef77b5d
No known key found for this signature in database
GPG Key ID: 25AB36E3E81CBC26

@ -5,7 +5,7 @@ import { FaTrashAlt, FaSave } from 'react-icons/fa';
import { mySpring } from './animations'; import { mySpring } from './animations';
import { saveColor } from './colors'; import { saveColor } from './colors';
const InverseCutSegment = memo(({ start, end, duration, invertCutSegments }) => ( const BetweenSegments = memo(({ start, end, duration, invertCutSegments }) => (
<motion.div <motion.div
style={{ style={{
position: 'absolute', position: 'absolute',
@ -30,4 +30,4 @@ const InverseCutSegment = memo(({ start, end, duration, invertCutSegments }) =>
</motion.div> </motion.div>
)); ));
export default InverseCutSegment; export default BetweenSegments;

@ -5,7 +5,7 @@ import debounce from 'lodash/debounce';
import { useTranslation } from 'react-i18next'; import { useTranslation } from 'react-i18next';
import TimelineSeg from './TimelineSeg'; import TimelineSeg from './TimelineSeg';
import InverseCutSegment from './InverseCutSegment'; import BetweenSegments from './BetweenSegments';
import { timelineBackground } from './colors'; import { timelineBackground } from './colors';
@ -250,7 +250,7 @@ const Timeline = memo(({
})} })}
{inverseCutSegments.map((seg) => ( {inverseCutSegments.map((seg) => (
<InverseCutSegment <BetweenSegments
// eslint-disable-next-line react/no-array-index-key // eslint-disable-next-line react/no-array-index-key
key={`${seg.start},${seg.end}`} key={`${seg.start},${seg.end}`}
start={seg.start} start={seg.start}

Loading…
Cancel
Save