From b9f3e02badb78d0d6928ce424f4da51a829bce6d Mon Sep 17 00:00:00 2001 From: dekanbro Date: Wed, 13 Sep 2023 08:09:03 -0600 Subject: [PATCH] remove member check on safes action menu, open to any connected member --- .../src/components/SafeCard/SafeActionMenu.tsx | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/libs/moloch-v3-macro-ui/src/components/SafeCard/SafeActionMenu.tsx b/libs/moloch-v3-macro-ui/src/components/SafeCard/SafeActionMenu.tsx index b0bbcffa..a499a58f 100644 --- a/libs/moloch-v3-macro-ui/src/components/SafeCard/SafeActionMenu.tsx +++ b/libs/moloch-v3-macro-ui/src/components/SafeCard/SafeActionMenu.tsx @@ -6,9 +6,8 @@ import { DropdownTrigger, DropdownContent, } from '@daohaus/ui'; -import { getNetwork, Keychain } from '@daohaus/keychain-utils'; +import { getNetwork } from '@daohaus/keychain-utils'; import { SafeActionMenuLink, SafeActionMenuTrigger } from './SafeCard.styles'; -import { useDaoMember } from '@daohaus/moloch-v3-hooks'; import { useDHConnect } from '@daohaus/connect'; type SafeActionMenuProps = { @@ -25,22 +24,14 @@ export const SafeActionMenu = ({ daoId, }: SafeActionMenuProps) => { const { address } = useDHConnect(); - const { member } = useDaoMember({ - daoId, - daoChain: daoChain as keyof Keychain, - memberAddress: address, - }); - - const enableActions = useMemo(() => { - return member && Number(member.shares) > 0; - }, [member]); const networkData = useMemo(() => { if (!daoChain) return null; return getNetwork(daoChain); }, [daoChain]); - if (!enableActions) return null; + // must be connected to view action menu + if (!address) return null; return (