From 221033a1a18c6f604a32398c6cf13ea4f0455358 Mon Sep 17 00:00:00 2001 From: Justin Edmund Date: Tue, 8 Mar 2022 16:00:45 -0800 Subject: [PATCH] Temporarily disable hovercards on editable teams It conflicts with search and weapon modals and makes it impossible to use --- components/CharacterUnit/index.tsx | 2 +- components/SummonUnit/index.tsx | 2 +- components/WeaponUnit/index.tsx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/components/CharacterUnit/index.tsx b/components/CharacterUnit/index.tsx index 02d5bc24..607aa0d4 100644 --- a/components/CharacterUnit/index.tsx +++ b/components/CharacterUnit/index.tsx @@ -106,7 +106,7 @@ const CharacterUnit = (props: Props) => { ) return ( - (gridCharacter) ? withHovercard : unitContent + (gridCharacter && !props.editable) ? withHovercard : unitContent ) } diff --git a/components/SummonUnit/index.tsx b/components/SummonUnit/index.tsx index ffdc73a4..7128551f 100644 --- a/components/SummonUnit/index.tsx +++ b/components/SummonUnit/index.tsx @@ -114,7 +114,7 @@ const SummonUnit = (props: Props) => { ) - return (gridSummon) ? withHovercard : unitContent + return (gridSummon && !props.editable) ? withHovercard : unitContent } export default SummonUnit diff --git a/components/WeaponUnit/index.tsx b/components/WeaponUnit/index.tsx index 815a0d38..ad740df8 100644 --- a/components/WeaponUnit/index.tsx +++ b/components/WeaponUnit/index.tsx @@ -125,7 +125,7 @@ const WeaponUnit = (props: Props) => { ) - return (gridWeapon) ? withHovercard : unitContent + return (gridWeapon && !props.editable) ? withHovercard : unitContent } export default WeaponUnit