Temporarily disable hovercards on editable teams
It conflicts with search and weapon modals and makes it impossible to use
This commit is contained in:
parent
91d8dc7ae4
commit
221033a1a1
3 changed files with 3 additions and 3 deletions
|
|
@ -106,7 +106,7 @@ const CharacterUnit = (props: Props) => {
|
|||
)
|
||||
|
||||
return (
|
||||
(gridCharacter) ? withHovercard : unitContent
|
||||
(gridCharacter && !props.editable) ? withHovercard : unitContent
|
||||
)
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -114,7 +114,7 @@ const SummonUnit = (props: Props) => {
|
|||
</SummonHovercard>
|
||||
)
|
||||
|
||||
return (gridSummon) ? withHovercard : unitContent
|
||||
return (gridSummon && !props.editable) ? withHovercard : unitContent
|
||||
}
|
||||
|
||||
export default SummonUnit
|
||||
|
|
|
|||
|
|
@ -125,7 +125,7 @@ const WeaponUnit = (props: Props) => {
|
|||
</WeaponHovercard>
|
||||
)
|
||||
|
||||
return (gridWeapon) ? withHovercard : unitContent
|
||||
return (gridWeapon && !props.editable) ? withHovercard : unitContent
|
||||
}
|
||||
|
||||
export default WeaponUnit
|
||||
|
|
|
|||
Loading…
Reference in a new issue