Temporarily disable hovercards on editable teams

It conflicts with search and weapon modals and makes it impossible to use
This commit is contained in:
Justin Edmund 2022-03-08 16:00:45 -08:00
parent 91d8dc7ae4
commit 221033a1a1
3 changed files with 3 additions and 3 deletions

View file

@ -106,7 +106,7 @@ const CharacterUnit = (props: Props) => {
)
return (
(gridCharacter) ? withHovercard : unitContent
(gridCharacter && !props.editable) ? withHovercard : unitContent
)
}

View file

@ -114,7 +114,7 @@ const SummonUnit = (props: Props) => {
</SummonHovercard>
)
return (gridSummon) ? withHovercard : unitContent
return (gridSummon && !props.editable) ? withHovercard : unitContent
}
export default SummonUnit

View file

@ -125,7 +125,7 @@ const WeaponUnit = (props: Props) => {
</WeaponHovercard>
)
return (gridWeapon) ? withHovercard : unitContent
return (gridWeapon && !props.editable) ? withHovercard : unitContent
}
export default WeaponUnit