mirror of
https://github.com/bellingcat/ukraine-timemap.git
synced 2026-06-12 13:28:36 +03:00
lint jsx files
This commit is contained in:
@@ -1,31 +1,30 @@
|
||||
import React from 'react';
|
||||
import { Portal } from 'react-portal';
|
||||
import React from 'react'
|
||||
import { Portal } from 'react-portal'
|
||||
|
||||
class MapSelectedEvents extends React.Component {
|
||||
renderMarker (event) {
|
||||
const { x, y } = this.props.projectPoint([event.latitude, event.longitude]);
|
||||
const { x, y } = this.props.projectPoint([event.latitude, event.longitude])
|
||||
return (
|
||||
<g
|
||||
className="location-marker"
|
||||
className='location-marker'
|
||||
transform={`translate(${x - 32}, ${y})`}
|
||||
>
|
||||
<path
|
||||
className="leaflet-interactive"
|
||||
stroke="#ffffff"
|
||||
stroke-opacity="1"
|
||||
stroke-width="3"
|
||||
stroke-linecap=""
|
||||
stroke-linejoin="round"
|
||||
stroke-dasharray="5,2"
|
||||
fill="none"
|
||||
d="M0,0a32,32 0 1,0 64,0 a32,32 0 1,0 -64,0 "
|
||||
>
|
||||
</path>
|
||||
className='leaflet-interactive'
|
||||
stroke='#ffffff'
|
||||
stroke-opacity='1'
|
||||
stroke-width='3'
|
||||
stroke-linecap=''
|
||||
stroke-linejoin='round'
|
||||
stroke-dasharray='5,2'
|
||||
fill='none'
|
||||
d='M0,0a32,32 0 1,0 64,0 a32,32 0 1,0 -64,0 '
|
||||
/>
|
||||
</g>
|
||||
);
|
||||
)
|
||||
}
|
||||
|
||||
render() {
|
||||
render () {
|
||||
return (
|
||||
<Portal node={this.props.svg}>
|
||||
{this.props.selected.map(s => this.renderMarker(s))}
|
||||
@@ -33,4 +32,4 @@ class MapSelectedEvents extends React.Component {
|
||||
)
|
||||
}
|
||||
}
|
||||
export default MapSelectedEvents;
|
||||
export default MapSelectedEvents
|
||||
|
||||
Reference in New Issue
Block a user