feat: carte - rend les ex-résistants moins visible 2

main
Sébastien Arod 2024-12-09 20:59:07 +01:00
parent 9e416a3e4b
commit 53db9f6e41
2 changed files with 4 additions and 2 deletions

View File

@ -15,7 +15,6 @@ export const Picto = ({ resistant }: Props) => {
alt={resistant.noms}
style={{
cursor: "pointer",
zIndex: ancienResistant ? 0:50
}}
height={size}
width={size}

View File

@ -2,7 +2,7 @@ import maplibregl from "maplibre-gl";
import "maplibre-gl/dist/maplibre-gl.css";
import React from "react";
import Map, { Marker, NavigationControl, Popup } from "react-map-gl";
import { Resistant } from "../../../Resistant";
import { isAncienResistant, Resistant } from "../../../Resistant";
import { Picto } from "./Picto";
import { PopupContent } from "./PopupContent";
@ -39,6 +39,9 @@ export default ({ resistants }: Props) => {
e.originalEvent.stopPropagation();
selectResistant(r);
}}
style={{
zIndex: isAncienResistant(r) ? 0:50
}}
>
<Picto resistant={r} />
</Marker>