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;
|
||||
}
|
||||
|
||||
export const Picto = ({ resistant }: Props) => (
|
||||
export const Picto = ({ resistant }: Props) => {
|
||||
const ancienResistant = isAncienResistant(resistant);
|
||||
const size = ancienResistant? "33px": "40px";
|
||||
return (
|
||||
<img
|
||||
src={isAncienResistant(resistant) ? pictoFondBlancNbUrl : pictoFondBlancUrl}
|
||||
src={ancienResistant ? pictoFondBlancNbUrl : pictoFondBlancUrl}
|
||||
alt={resistant.noms}
|
||||
style={{ cursor: "pointer" }}
|
||||
height="40px"
|
||||
width="40px"
|
||||
style={{
|
||||
cursor: "pointer",
|
||||
zIndex: ancienResistant ? 0:50
|
||||
}}
|
||||
height={size}
|
||||
width={size}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue