mirror of
https://github.com/bellingcat/ukraine-timemap.git
synced 2026-06-13 05:48:36 +03:00
renamed js folder as common + moved hardcoded colors into global.js
This commit is contained in:
committed by
Lachlan Kermode
parent
c32dff1080
commit
7755a8fee2
@@ -1,5 +1,6 @@
|
||||
import React from 'react'
|
||||
import { Portal } from 'react-portal'
|
||||
import colors from '../../../common/global.js'
|
||||
|
||||
function MapEvents ({ getCategoryColor, categories, projectPoint, styleLocation, selected, narrative, onSelect, svg, locations }) {
|
||||
function getCoordinatesForPercent (radius, percent) {
|
||||
@@ -16,7 +17,7 @@ function MapEvents ({ getCategoryColor, categories, projectPoint, styleLocation,
|
||||
cx="0"
|
||||
cy="0"
|
||||
r="10"
|
||||
stroke="#ffd800"
|
||||
stroke={colors.primaryHighlight}
|
||||
fill-opacity="0.0"
|
||||
/>}
|
||||
</React.Fragment>
|
||||
@@ -30,7 +31,7 @@ function MapEvents ({ getCategoryColor, categories, projectPoint, styleLocation,
|
||||
|
||||
let styles = ({
|
||||
fill: getCategoryColor(locCategory),
|
||||
stroke: '#ffffff',
|
||||
stroke: colors.darkBackground,
|
||||
strokeWidth: 0,
|
||||
fillOpacity: 0.85,
|
||||
...extraStyles
|
||||
|
||||
Reference in New Issue
Block a user