From 64db4fcbe4be68162a97d5afa8a5a84026dd6418 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20=C5=BDunec?= Date: Wed, 25 Mar 2026 17:38:58 +0100 Subject: [PATCH] add exclusive single registration flow that uses ENS registrar with support to set name as primary upon registration --- src/app/providers.tsx | 15 +- .../components/reverse-record.tsx | 4 +- .../registration/components/review-form.tsx | 8 +- .../hooks/use-registration-modal.ts | 137 +++++++++++++----- src/hooks/registrar/useRegisterDomain.ts | 4 +- src/hooks/useAuthStatus.ts | 1 - 6 files changed, 126 insertions(+), 43 deletions(-) diff --git a/src/app/providers.tsx b/src/app/providers.tsx index f83043fa..509ca720 100644 --- a/src/app/providers.tsx +++ b/src/app/providers.tsx @@ -1,6 +1,6 @@ 'use client' -import { useMemo } from 'react' +import { useEffect, useMemo } from 'react' import { WagmiProvider, type State } from 'wagmi' import { Provider as ReduxProvider } from 'react-redux' import { darkTheme, RainbowKitProvider } from '@rainbow-me/rainbowkit' @@ -33,6 +33,19 @@ const Providers: React.FC = ({ children, initialState }) => { // const handleInfoBarVisibilityChange = useCallback((visible: boolean) => { // setShowInfoBar(visible) // }, []) + useEffect(() => { + console.clear() + console.log(`%c + /$$$$$$ /$$ /$$ + /$$__ $$ |__/| $$ +| $$ \\__/ /$$$$$$ /$$$$$$ /$$| $$ /$$$$$$$ +| $$ /$$$$ /$$__ $$|____ $$| $$| $$ /$$_____/ +| $$|_ $$| $$ \\__/ /$$$$$$$| $$| $$| $$$$$$ +| $$ \\ $$| $$ /$$__ $$| $$| $$ \\____ $$ +| $$$$$$/| $$ | $$$$$$$| $$| $$ /$$$$$$$/ + \\______/ |__/ \\_______/|__/|__/|_______/ +`, 'color: #ffdfc0;') + }, []) const providers = useMemo( () => ( diff --git a/src/components/modal/registration/components/reverse-record.tsx b/src/components/modal/registration/components/reverse-record.tsx index 2b57bc03..cbcb707f 100644 --- a/src/components/modal/registration/components/reverse-record.tsx +++ b/src/components/modal/registration/components/reverse-record.tsx @@ -10,8 +10,8 @@ const ReverseRecordSection: React.FC = ({ reverseReco
-

Reverse Record

-

ENS names will point to the registrant's address

+

Set as Primary Name

+

Set this name as the primary ENS name for your address