Skip to content

Commit

Permalink
REVERT enable ens for watch wallets
Browse files Browse the repository at this point in the history
  • Loading branch information
estebanmino committed Apr 26, 2022
1 parent 035fd60 commit 383e1ab
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions src/components/discover-sheet/RegisterENSSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import { ButtonPressAnimation } from '../animations';
import { ensAvatarUrl } from '../ens-registration/IntroMarquee/IntroMarquee';
import ENSIcon from '../icons/svg/ENSIcon';
import ImgixImage from '../images/ImgixImage';
import { enableActionsOnReadOnlyWallet } from '@rainbow-me/config';
import { useTheme } from '@rainbow-me/context';
import {
AccentColorProvider,
Expand All @@ -16,23 +15,20 @@ import {
Stack,
Text,
} from '@rainbow-me/design-system';
import { useWallets } from '@rainbow-me/hooks';
import { ensIntroMarqueeNames } from '@rainbow-me/references';
import Routes from '@rainbow-me/routes';
import { watchingAlert } from '@rainbow-me/utils';

export default function RegisterENSSection() {
const { navigate } = useNavigation();
const { colors } = useTheme();
const { isReadOnlyWallet } = useWallets();

const handlePress = useCallback(() => {
if (!isReadOnlyWallet || enableActionsOnReadOnlyWallet) {
navigate(Routes.REGISTER_ENS_NAVIGATOR);
} else {
watchingAlert();
}
}, [isReadOnlyWallet, navigate]);
// if (!isReadOnlyWallet || enableActionsOnReadOnlyWallet) {
navigate(Routes.REGISTER_ENS_NAVIGATOR);
// } else {
// watchingAlert();
// }
}, [navigate]);

useEffect(() => {
// Preload intro screen preview marquee ENS images
Expand Down

0 comments on commit 383e1ab

Please sign in to comment.