mirror of
https://github.com/bellingcat/ukraine-timemap.git
synced 2026-06-08 03:18:36 +03:00
Fix DOM property name warnings
This commit is contained in:
@@ -8,7 +8,7 @@ const CoverIcon = ({ isActive, isDisabled, onClickHandler }) => {
|
||||
|
||||
return (
|
||||
<button className={classes} onClick={onClickHandler}>
|
||||
<i class="material-icons">home</i>
|
||||
<i className="material-icons">home</i>
|
||||
</button>
|
||||
);
|
||||
};
|
||||
|
||||
@@ -8,7 +8,7 @@ const SitesIcon = ({ isActive, isDisabled, onClickHandler }) => {
|
||||
|
||||
return (
|
||||
<button className={classes} onClick={onClickHandler}>
|
||||
<i class="material-icons">location_on</i>
|
||||
<i className="material-icons">location_on</i>
|
||||
</button>
|
||||
);
|
||||
};
|
||||
|
||||
@@ -17,7 +17,7 @@ const SatelliteOverlayToggle = ({
|
||||
style={{ backgroundImage: `url(${mapImg}` }}
|
||||
onClick={reset}
|
||||
>
|
||||
<div class="label">{copy[language].tiles.default}</div>
|
||||
<div className="label">{copy[language].tiles.default}</div>
|
||||
</button>
|
||||
) : (
|
||||
<button
|
||||
@@ -25,7 +25,7 @@ const SatelliteOverlayToggle = ({
|
||||
style={{ backgroundImage: `url(${satImg}` }}
|
||||
onClick={switchToSatellite}
|
||||
>
|
||||
<div class="label">{copy[language].tiles.satellite}</div>
|
||||
<div className="label">{copy[language].tiles.satellite}</div>
|
||||
</button>
|
||||
)}
|
||||
</div>
|
||||
|
||||
@@ -4,24 +4,24 @@ const TimelineLabels = ({ dims, timelabels }) => {
|
||||
return (
|
||||
<g>
|
||||
<line
|
||||
class="axisBoundaries"
|
||||
className="axisBoundaries"
|
||||
x1={dims.marginLeft}
|
||||
x2={dims.marginLeft}
|
||||
y1="10"
|
||||
y2="20"
|
||||
/>
|
||||
<line
|
||||
class="axisBoundaries"
|
||||
className="axisBoundaries"
|
||||
x1={dims.width - dims.width_controls}
|
||||
x2={dims.width - dims.width_controls}
|
||||
y1="10"
|
||||
y2="20"
|
||||
/>
|
||||
<text class="timeLabel0 timeLabel" x="5" y="15">
|
||||
<text className="timeLabel0 timeLabel" x="5" y="15">
|
||||
{timelabels[0]}
|
||||
</text>
|
||||
<text
|
||||
class="timelabelF timeLabel"
|
||||
className="timelabelF timeLabel"
|
||||
x={dims.width - dims.width_controls - 5}
|
||||
y="135"
|
||||
style={{ textAnchor: "end" }}
|
||||
|
||||
Reference in New Issue
Block a user