feat: carte - rend les ex-résistants moins visible
- les ex-resistants sont maintenant dessous - la taille est maitenant un peu plus faiblemain
parent
87154c2b36
commit
9e416a3e4b
|
@ -6,12 +6,19 @@ interface Props {
|
||||||
resistant: Resistant;
|
resistant: Resistant;
|
||||||
}
|
}
|
||||||
|
|
||||||
export const Picto = ({ resistant }: Props) => (
|
export const Picto = ({ resistant }: Props) => {
|
||||||
|
const ancienResistant = isAncienResistant(resistant);
|
||||||
|
const size = ancienResistant? "33px": "40px";
|
||||||
|
return (
|
||||||
<img
|
<img
|
||||||
src={isAncienResistant(resistant) ? pictoFondBlancNbUrl : pictoFondBlancUrl}
|
src={ancienResistant ? pictoFondBlancNbUrl : pictoFondBlancUrl}
|
||||||
alt={resistant.noms}
|
alt={resistant.noms}
|
||||||
style={{ cursor: "pointer" }}
|
style={{
|
||||||
height="40px"
|
cursor: "pointer",
|
||||||
width="40px"
|
zIndex: ancienResistant ? 0:50
|
||||||
|
}}
|
||||||
|
height={size}
|
||||||
|
width={size}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue