From a0d0173c0a75715d2e58f7173dcb88656c305506 Mon Sep 17 00:00:00 2001 From: aeddaqqa Date: Thu, 19 Dec 2024 14:45:21 +0100 Subject: [PATCH] refactor(partnerShowRoom): hie on messenger filter on camino and columbus --- src/components/Partners/PartnersFilter.tsx | 49 ++++++++++++---------- 1 file changed, 26 insertions(+), 23 deletions(-) diff --git a/src/components/Partners/PartnersFilter.tsx b/src/components/Partners/PartnersFilter.tsx index 9527278b..37a7a5b2 100644 --- a/src/components/Partners/PartnersFilter.tsx +++ b/src/components/Partners/PartnersFilter.tsx @@ -33,7 +33,7 @@ const PartnersFilter: React.FC = ({ state, dispatchPartners return '' }, [data]) const auth = useAppSelector(state => state.appConfig.isAuth) - + return ( = ({ state, dispatchPartners } /> - - On Messenger} - control={ - theme.palette.secondary.main, - '&.Mui-checked': { - color: theme => theme.palette.secondary.main, - }, - '&.MuiCheckbox-colorSecondary.Mui-checked': { - color: theme => theme.palette.secondary.main, - }, - }} - checked={state.onMessenger} - onChange={() => - dispatchPartnersActions({ - type: partnersActions.TOGGLE_ON_MESSENGER, - }) + {activeNetwork?.name?.toLowerCase() !== 'camino' && + activeNetwork?.name?.toLowerCase() !== 'columbus' && ( + + On Messenger} + control={ + theme.palette.secondary.main, + '&.Mui-checked': { + color: theme => theme.palette.secondary.main, + }, + '&.MuiCheckbox-colorSecondary.Mui-checked': { + color: theme => theme.palette.secondary.main, + }, + }} + checked={state.onMessenger} + onChange={() => + dispatchPartnersActions({ + type: partnersActions.TOGGLE_ON_MESSENGER, + }) + } + /> } /> - } - /> - + + )} {(!auth || !partnerCChainAddress) && (