mirror of
https://github.com/bellingcat/ukraine-timemap.git
synced 2026-06-12 21:38:35 +03:00
implements first attempt of unlocated bars
needs profiling and better calculated styles
This commit is contained in:
21
src/components/presentational/Timeline/DatetimeBar.js
Normal file
21
src/components/presentational/Timeline/DatetimeBar.js
Normal file
@@ -0,0 +1,21 @@
|
||||
import React from 'react'
|
||||
|
||||
export default ({
|
||||
category,
|
||||
events,
|
||||
x,
|
||||
y,
|
||||
onSelect,
|
||||
styleProps,
|
||||
extraRender
|
||||
}) => (
|
||||
<rect
|
||||
onClick={onSelect}
|
||||
className='event'
|
||||
x={x}
|
||||
y={y}
|
||||
style={styleProps}
|
||||
width={4}
|
||||
height={55}
|
||||
/>
|
||||
)
|
||||
Reference in New Issue
Block a user