fix: marker time image

This commit is contained in:
JohnMark Sill 2022-06-02 14:07:00 -05:00 committed by Blake Blackshear
parent 061fb15a80
commit 0879d7a2d1

View File

@ -20,11 +20,11 @@ export const TimelineBlocks = ({ timeline, firstBlockOffset, onEventClick }: Tim
const timelineBlockOffset = (timelineContainerHeight - largestYOffsetInBlocks) / 2; const timelineBlockOffset = (timelineContainerHeight - largestYOffsetInBlocks) / 2;
return ( return (
<div <div
className='relative' className="relative"
style={{ style={{
height: `${timelineContainerHeight}px`, height: `${timelineContainerHeight}px`,
width: `${timelineContainerWidth}px`, width: `${timelineContainerWidth}px`,
background: "url('/marker.png')", background: "url('/images/marker.png')",
backgroundPosition: 'center', backgroundPosition: 'center',
backgroundSize: '30px', backgroundSize: '30px',
backgroundRepeat: 'repeat', backgroundRepeat: 'repeat',
@ -41,7 +41,7 @@ export const TimelineBlocks = ({ timeline, firstBlockOffset, onEventClick }: Tim
</div> </div>
); );
} }
return <div /> return <div />;
}, [timeline, onEventClick, firstBlockOffset]); }, [timeline, onEventClick, firstBlockOffset]);
return timelineEventBlocks; return timelineEventBlocks;