@thenamespace/ens-components 0.18.0 → 0.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +101 -70
- package/dist/index.css +1 -4890
- package/dist/index.css.map +1 -1
- package/dist/index.d.ts +200 -26718
- package/dist/index.js +28464 -132564
- package/dist/index.js.map +1 -1
- package/dist/styles.js +3 -3
- package/dist/types/components/atoms/icon/Icon.d.ts +1 -1
- package/dist/types/components/atoms/index.d.ts +1 -0
- package/dist/types/components/atoms/input/Input.d.ts +1 -0
- package/dist/types/components/atoms/spinner/ShurikenSpinner.d.ts +8 -0
- package/dist/types/components/ens-name-registration/ENSNameRegistrationForm.d.ts +10 -0
- package/dist/types/components/ens-name-registration/RegistrationProcess.d.ts +20 -0
- package/dist/types/components/ens-name-registration/RegistrationSummary.d.ts +32 -0
- package/dist/types/components/ens-name-registration/SetNameRecords.d.ts +9 -0
- package/dist/types/components/ens-name-registration/registration/CommitmentStep.d.ts +11 -0
- package/dist/types/components/{ens-names-registrar-component/sub-components → ens-name-registration/registration}/ProgressBar.d.ts +1 -0
- package/dist/types/components/ens-name-registration/registration/RegistrationStep.d.ts +17 -0
- package/dist/types/components/ens-name-registration/registration/SuccessScreen.d.ts +16 -0
- package/dist/types/components/{ens-names-registrar-component/sub-components → ens-name-registration/registration}/Timer.d.ts +1 -0
- package/dist/types/components/ens-name-registration/registration/TimerStep.d.ts +8 -0
- package/dist/types/components/ens-name-registration/registration/TransactionPendingScreen.d.ts +10 -0
- package/dist/types/components/ens-name-registration/registration/index.d.ts +7 -0
- package/dist/types/components/ens-name-registration/registration/types.d.ts +28 -0
- package/dist/types/components/index.d.ts +1 -6
- package/dist/types/components/molecules/accordion/Accordion.d.ts +16 -0
- package/dist/types/components/molecules/accordion/index.d.ts +1 -0
- package/dist/types/components/molecules/contract-error-label/ContractErrorLabel.d.ts +16 -0
- package/dist/types/components/molecules/contract-error-label/index.d.ts +1 -0
- package/dist/types/components/molecules/index.d.ts +2 -0
- package/dist/types/components/select-records-form/SelectRecordsForm.d.ts +2 -1
- package/dist/types/constants/records/addressConstants.d.ts +0 -1
- package/dist/types/hooks/abis/index.d.ts +92 -0
- package/dist/types/hooks/index.d.ts +2 -25
- package/dist/types/hooks/useRegisterENS.d.ts +23 -0
- package/dist/types/hooks/useWaitTransaction.d.ts +13 -0
- package/dist/types/index.d.ts +1 -2
- package/dist/types/types/index.d.ts +0 -10
- package/dist/types/utils/ens.d.ts +2 -3
- package/dist/types/utils/index.d.ts +2 -0
- package/dist/types/utils/models.d.ts +1 -2
- package/dist/types/utils/strings.d.ts +1 -0
- package/dist/types/web3/index.d.ts +0 -4
- package/package.json +16 -17
- package/dist/types/backend/index.d.ts +0 -1
- package/dist/types/backend/list-manager/index.d.ts +0 -57
- package/dist/types/components/ens-names-card/EnsNameCard.d.ts +0 -14
- package/dist/types/components/ens-names-registrar-component/ENSNamesRegistrarComponent.d.ts +0 -17
- package/dist/types/components/ens-names-registrar-component/sub-components/CostSummary.d.ts +0 -12
- package/dist/types/components/ens-names-registrar-component/sub-components/Header.d.ts +0 -8
- package/dist/types/components/ens-names-registrar-component/sub-components/NameSearch.d.ts +0 -12
- package/dist/types/components/ens-names-registrar-component/sub-components/RegistrationForm.d.ts +0 -24
- package/dist/types/components/ens-names-registrar-component/sub-components/RegistrationProcess.d.ts +0 -10
- package/dist/types/components/ens-names-registrar-component/sub-components/StepItem.d.ts +0 -11
- package/dist/types/components/ens-names-registrar-component/sub-components/SuccessScreen.d.ts +0 -13
- package/dist/types/components/ens-navbar-profile-card/NavbarProfileCard.d.ts +0 -14
- package/dist/types/components/ens-profile-card/ProfileCard.d.ts +0 -24
- package/dist/types/components/subname-offchain-registrar-modal/SubnameOffChainRegistrarModal.d.ts +0 -18
- package/dist/types/components/subname-offchain-registrar-modal/sub-components/InitialStep.d.ts +0 -9
- package/dist/types/components/subname-offchain-registrar-modal/sub-components/OffchainRegistrationProcess.d.ts +0 -18
- package/dist/types/components/subname-offchain-registrar-modal/sub-components/OffchainSuccessScreen.d.ts +0 -8
- package/dist/types/components/subname-onchain-registrar-modal/SubnameOnChainRegistrarModal.d.ts +0 -31
- package/dist/types/components/subname-onchain-registrar-modal/sub-components/ConfirmationStep.d.ts +0 -18
- package/dist/types/components/subname-onchain-registrar-modal/sub-components/InitialStep.d.ts +0 -11
- package/dist/types/components/subname-onchain-registrar-modal/sub-components/OnchainSuccessScreen.d.ts +0 -6
- package/dist/types/components/subname-onchain-registrar-modal/sub-components/RegistrationStep.d.ts +0 -28
- package/dist/types/context/account-context.d.ts +0 -44
- package/dist/types/context/account-filter-context.d.ts +0 -32
- package/dist/types/context/auth-context.d.ts +0 -22
- package/dist/types/context/crop-image-context.d.ts +0 -27
- package/dist/types/context/current-user-context.d.ts +0 -19
- package/dist/types/context/edit-profile-context.d.ts +0 -13
- package/dist/types/context/ens-profile-context.d.ts +0 -54
- package/dist/types/context/index.d.ts +0 -6
- package/dist/types/context/listing-form-context.d.ts +0 -55
- package/dist/types/context/listing-status-context.d.ts +0 -19
- package/dist/types/context/mint-subname-context.d.ts +0 -12
- package/dist/types/context/profile-filter.context.d.ts +0 -19
- package/dist/types/environment/index.d.ts +0 -9
- package/dist/types/hooks/efp/use-efp.d.ts +0 -11
- package/dist/types/hooks/ens/ens-local-cache.d.ts +0 -18
- package/dist/types/hooks/ens/use-ens-client.d.ts +0 -763
- package/dist/types/hooks/ens/use-ens-contract-address.d.ts +0 -1
- package/dist/types/hooks/ens/use-ens-name-profile.d.ts +0 -15
- package/dist/types/hooks/ens/use-ens.d.ts +0 -21
- package/dist/types/hooks/ens/use-eth-registrar-controller.d.ts +0 -21
- package/dist/types/hooks/ens/use-name-wrapper.d.ts +0 -6
- package/dist/types/hooks/ens/use-owned-ens-names.d.ts +0 -9
- package/dist/types/hooks/namespace/use-burn-l2-subname.d.ts +0 -4
- package/dist/types/hooks/namespace/use-hybrid-resolver.d.ts +0 -10
- package/dist/types/hooks/namespace/use-l2-controller.d.ts +0 -8
- package/dist/types/hooks/namespace/use-listing-manager.d.ts +0 -2
- package/dist/types/hooks/namespace/use-mint-client.d.ts +0 -2
- package/dist/types/hooks/namespace/use-mintable-listings.d.ts +0 -7
- package/dist/types/hooks/namespace/use-name-listings.d.ts +0 -1
- package/dist/types/hooks/namespace/use-namespace-account.d.ts +0 -25
- package/dist/types/hooks/namespace/use-namespace-indexer.d.ts +0 -7
- package/dist/types/hooks/namespace/use-re-render-image.d.ts +0 -1
- package/dist/types/hooks/namespace/use-trading-stats.d.ts +0 -1
- package/dist/types/hooks/upload-image/use-upload-image.d.ts +0 -8
- package/dist/types/hooks/use-error-modal.d.ts +0 -4
- package/dist/types/hooks/use-screen-size.d.ts +0 -5
- package/dist/types/hooks/useWaitForTransaction.d.ts +0 -3
- package/dist/types/hooks/useWeb3Clients.d.ts +0 -8041
- package/dist/types/hooks/web3/alchemy-sdk-no-ssr.d.ts +0 -0
- package/dist/types/hooks/web3/use-alchemy-sdk.d.ts +0 -4
- package/dist/types/hooks/web3/use-block-explorer.d.ts +0 -2
- package/dist/types/hooks/web3/use-blockexplorer-url.d.ts +0 -2
- package/dist/types/hooks/web3/use-contract-addresses.d.ts +0 -1
- package/dist/types/hooks/web3/use-l1-name-minter.d.ts +0 -5
- package/dist/types/hooks/web3/use-main-chain.d.ts +0 -10
- package/dist/types/hooks/web3/use-main-public-client.d.ts +0 -3624
- package/dist/types/hooks/web3/use-name-resolver.d.ts +0 -24
- package/dist/types/hooks/web3/use-name-wrapper.d.ts +0 -3
- package/dist/types/hooks/web3/use-wait-for-transaction.d.ts +0 -8
- package/dist/types/hooks/web3/use-web3-clients.d.ts +0 -8042
- package/dist/types/types/auth.d.ts +0 -8
- package/dist/types/types/ens.d.ts +0 -61
- package/dist/types/types/errors.d.ts +0 -2
- package/dist/types/types/hybrid-resolver.d.ts +0 -4
- package/dist/types/types/indexer.d.ts +0 -27
- package/dist/types/types/l2.d.ts +0 -34
- package/dist/types/types/list-manager.d.ts +0 -179
- package/dist/types/types/listing.d.ts +0 -136
- package/dist/types/types/minting.d.ts +0 -75
- package/dist/types/types/name-listing/enums.d.ts +0 -20
- package/dist/types/types/name-listing/index.d.ts +0 -3
- package/dist/types/types/name-listing/l2-name-registry.d.ts +0 -13
- package/dist/types/types/name-listing/listing.d.ts +0 -73
- package/dist/types/types/networks.d.ts +0 -16
- package/dist/types/utils/image-event-emitter.d.ts +0 -8
- package/dist/types/web3/abis/index.d.ts +0 -300
- package/dist/types/web3/chains.d.ts +0 -12
- package/dist/types/web3/contracts/addresses.d.ts +0 -4
- package/dist/types/web3/efp-provider.d.ts +0 -2
- package/dist/types/web3/providers.d.ts +0 -3
package/README.md
CHANGED
|
@@ -50,9 +50,7 @@ function AppProviders({ children }: { children: React.ReactNode }) {
|
|
|
50
50
|
return (
|
|
51
51
|
<WagmiProvider config={wagmiConfig}>
|
|
52
52
|
<QueryClientProvider client={queryClient}>
|
|
53
|
-
<RainbowKitProvider>
|
|
54
|
-
{children}
|
|
55
|
-
</RainbowKitProvider>
|
|
53
|
+
<RainbowKitProvider>{children}</RainbowKitProvider>
|
|
56
54
|
</QueryClientProvider>
|
|
57
55
|
</WagmiProvider>
|
|
58
56
|
);
|
|
@@ -62,14 +60,13 @@ function AppProviders({ children }: { children: React.ReactNode }) {
|
|
|
62
60
|
### 2. Use the Components
|
|
63
61
|
|
|
64
62
|
```tsx
|
|
65
|
-
import {
|
|
63
|
+
import {
|
|
64
|
+
ENSNamesRegistrarComponent,
|
|
65
|
+
SubnameOnChainRegistrarModal,
|
|
66
|
+
} from "@thenamespace/ens-components";
|
|
66
67
|
|
|
67
68
|
function MyApp() {
|
|
68
|
-
return
|
|
69
|
-
<AppProviders>
|
|
70
|
-
{/* Your components here */}
|
|
71
|
-
</AppProviders>
|
|
72
|
-
);
|
|
69
|
+
return <AppProviders>{/* Your components here */}</AppProviders>;
|
|
73
70
|
}
|
|
74
71
|
```
|
|
75
72
|
|
|
@@ -114,20 +111,20 @@ The component has 4 main steps:
|
|
|
114
111
|
|
|
115
112
|
#### Props
|
|
116
113
|
|
|
117
|
-
| Prop
|
|
118
|
-
|
|
119
|
-
| `name`
|
|
120
|
-
| `duration`
|
|
121
|
-
| `onNameChange`
|
|
122
|
-
| `onDurationChange`
|
|
123
|
-
| `onBack`
|
|
124
|
-
| `onClose`
|
|
125
|
-
| `onNext`
|
|
126
|
-
| `onCompleteProfile`
|
|
127
|
-
| `onOpenWallet`
|
|
128
|
-
| `onCompleteRegistration` | `() => void`
|
|
129
|
-
| `onRegisterAnother`
|
|
130
|
-
| `onViewName`
|
|
114
|
+
| Prop | Type | Required | Default | Description |
|
|
115
|
+
| ------------------------ | ---------------------------- | -------- | -------------- | ------------------------------------------- |
|
|
116
|
+
| `name` | `string` | No | `"brightwave"` | Initial ENS name (without .eth suffix) |
|
|
117
|
+
| `duration` | `number` | No | `1` | Registration duration in years |
|
|
118
|
+
| `onNameChange` | `(name: string) => void` | No | - | Callback when name changes |
|
|
119
|
+
| `onDurationChange` | `(duration: number) => void` | No | - | Callback when duration changes |
|
|
120
|
+
| `onBack` | `() => void` | No | - | Callback when back button is clicked |
|
|
121
|
+
| `onClose` | `() => void` | No | - | Callback when close button is clicked |
|
|
122
|
+
| `onNext` | `() => void` | No | - | Callback when next button is clicked |
|
|
123
|
+
| `onCompleteProfile` | `() => void` | No | - | Callback when "Complete Profile" is clicked |
|
|
124
|
+
| `onOpenWallet` | `() => void` | No | - | Callback when wallet needs to be opened |
|
|
125
|
+
| `onCompleteRegistration` | `() => void` | No | - | Callback when registration completes |
|
|
126
|
+
| `onRegisterAnother` | `() => void` | No | - | Callback when "Register Another" is clicked |
|
|
127
|
+
| `onViewName` | `() => void` | No | - | Callback when "View Name" is clicked |
|
|
131
128
|
|
|
132
129
|
#### Complete Example
|
|
133
130
|
|
|
@@ -173,12 +170,12 @@ function ENSRegistrationExample() {
|
|
|
173
170
|
}
|
|
174
171
|
}}
|
|
175
172
|
/>
|
|
176
|
-
|
|
173
|
+
|
|
177
174
|
{registeredNames.length > 0 && (
|
|
178
175
|
<div>
|
|
179
176
|
<h3>Registered Names:</h3>
|
|
180
177
|
<ul>
|
|
181
|
-
{registeredNames.map(
|
|
178
|
+
{registeredNames.map(n => (
|
|
182
179
|
<li key={n}>{n}.eth</li>
|
|
183
180
|
))}
|
|
184
181
|
</ul>
|
|
@@ -243,35 +240,35 @@ The component has 3 main steps:
|
|
|
243
240
|
|
|
244
241
|
#### Props
|
|
245
242
|
|
|
246
|
-
| Prop
|
|
247
|
-
|
|
248
|
-
| `step`
|
|
249
|
-
| `name`
|
|
250
|
-
| `parentName`
|
|
251
|
-
| `profileComplete`
|
|
252
|
-
| `domainSuffix`
|
|
253
|
-
| `owner`
|
|
254
|
-
| `duration`
|
|
255
|
-
| `registrationFee`
|
|
256
|
-
| `networkFee`
|
|
257
|
-
| `totalCost`
|
|
258
|
-
| `useAsPrimary`
|
|
259
|
-
| `profileImageUrl`
|
|
260
|
-
| `onStepChange`
|
|
261
|
-
| `onNameChange`
|
|
262
|
-
| `onProfileCompleteChange` | `(complete: boolean) => void`
|
|
263
|
-
| `onOwnerChange`
|
|
264
|
-
| `onDurationChange`
|
|
265
|
-
| `onUseAsPrimaryChange`
|
|
266
|
-
| `onRegister`
|
|
267
|
-
| `onCancel`
|
|
268
|
-
| `onClose`
|
|
269
|
-
| `onCompleteProfile`
|
|
270
|
-
| `onOpenWallet`
|
|
271
|
-
| `onCompleteRegistration`
|
|
272
|
-
| `onRegisterAnother`
|
|
273
|
-
| `onViewName`
|
|
274
|
-
| `onFinish`
|
|
243
|
+
| Prop | Type | Required | Default | Description |
|
|
244
|
+
| ------------------------- | --------------------------------- | -------- | --------------------- | ------------------------------------------------------- |
|
|
245
|
+
| `step` | `number` | No | `0` | Current step (0: Initial, 1: Registration, 2: Success) |
|
|
246
|
+
| `name` | `string` | No | `""` | Subname label (without parent domain) |
|
|
247
|
+
| `parentName` | `string` | No | `"celotest.eth"` | Parent domain name |
|
|
248
|
+
| `profileComplete` | `boolean` | No | `false` | Whether profile is complete |
|
|
249
|
+
| `domainSuffix` | `string` | No | `"eth"` | Domain suffix |
|
|
250
|
+
| `owner` | `string` | No | `"0x035eB...24117D3"` | Owner address for the subname |
|
|
251
|
+
| `duration` | `number` | No | `1` | Registration duration in years |
|
|
252
|
+
| `registrationFee` | `string` | No | - | Registration fee (optional) |
|
|
253
|
+
| `networkFee` | `string` | No | - | Network fee (optional) |
|
|
254
|
+
| `totalCost` | `string` | No | - | Total cost (optional) |
|
|
255
|
+
| `useAsPrimary` | `boolean` | No | `false` | Whether to use as primary name |
|
|
256
|
+
| `profileImageUrl` | `string` | No | - | Profile image URL (optional) |
|
|
257
|
+
| `onStepChange` | `(step: number) => void` | No | - | Callback when step changes |
|
|
258
|
+
| `onNameChange` | `(name: string) => void` | No | - | Callback when name changes |
|
|
259
|
+
| `onProfileCompleteChange` | `(complete: boolean) => void` | No | - | Callback when profile complete status changes |
|
|
260
|
+
| `onOwnerChange` | `(owner: string) => void` | No | - | Callback when owner changes |
|
|
261
|
+
| `onDurationChange` | `(duration: number) => void` | No | - | Callback when duration changes |
|
|
262
|
+
| `onUseAsPrimaryChange` | `(useAsPrimary: boolean) => void` | No | - | Callback when useAsPrimary changes |
|
|
263
|
+
| `onRegister` | `() => void` | No | - | Callback when register button is clicked |
|
|
264
|
+
| `onCancel` | `() => void` | No | - | Callback when cancel button is clicked |
|
|
265
|
+
| `onClose` | `() => void` | No | - | Callback when close button is clicked |
|
|
266
|
+
| `onCompleteProfile` | `() => void` | No | - | Callback when "Complete Profile" is clicked |
|
|
267
|
+
| `onOpenWallet` | `() => void` | No | - | Callback when wallet needs to be opened |
|
|
268
|
+
| `onCompleteRegistration` | `() => void` | No | - | Callback when registration completes |
|
|
269
|
+
| `onRegisterAnother` | `() => void` | No | - | Callback when "Register Another" is clicked |
|
|
270
|
+
| `onViewName` | `() => void` | No | - | Callback when "View Name" is clicked |
|
|
271
|
+
| `onFinish` | `() => void` | No | - | Callback when finish button is clicked (success screen) |
|
|
275
272
|
|
|
276
273
|
#### Complete Example
|
|
277
274
|
|
|
@@ -311,14 +308,12 @@ function SubnameRegistrationExample() {
|
|
|
311
308
|
if (!isOpen) {
|
|
312
309
|
return (
|
|
313
310
|
<div>
|
|
314
|
-
<button onClick={() => setIsOpen(true)}>
|
|
315
|
-
Register Subname
|
|
316
|
-
</button>
|
|
311
|
+
<button onClick={() => setIsOpen(true)}>Register Subname</button>
|
|
317
312
|
{registeredSubnames.length > 0 && (
|
|
318
313
|
<div>
|
|
319
314
|
<h3>Registered Subnames:</h3>
|
|
320
315
|
<ul>
|
|
321
|
-
{registeredSubnames.map(
|
|
316
|
+
{registeredSubnames.map(n => (
|
|
322
317
|
<li key={n}>{n}</li>
|
|
323
318
|
))}
|
|
324
319
|
</ul>
|
|
@@ -329,8 +324,28 @@ function SubnameRegistrationExample() {
|
|
|
329
324
|
}
|
|
330
325
|
|
|
331
326
|
return (
|
|
332
|
-
<div
|
|
333
|
-
|
|
327
|
+
<div
|
|
328
|
+
style={{
|
|
329
|
+
position: "fixed",
|
|
330
|
+
inset: 0,
|
|
331
|
+
backgroundColor: "rgba(0, 0, 0, 0.5)",
|
|
332
|
+
display: "flex",
|
|
333
|
+
alignItems: "center",
|
|
334
|
+
justifyContent: "center",
|
|
335
|
+
zIndex: 1000,
|
|
336
|
+
}}
|
|
337
|
+
>
|
|
338
|
+
<div
|
|
339
|
+
style={{
|
|
340
|
+
backgroundColor: "white",
|
|
341
|
+
borderRadius: "8px",
|
|
342
|
+
padding: "20px",
|
|
343
|
+
maxWidth: "600px",
|
|
344
|
+
width: "90%",
|
|
345
|
+
maxHeight: "90vh",
|
|
346
|
+
overflow: "auto",
|
|
347
|
+
}}
|
|
348
|
+
>
|
|
334
349
|
<SubnameOnChainRegistrarModal
|
|
335
350
|
step={step}
|
|
336
351
|
name={name}
|
|
@@ -373,7 +388,10 @@ import { QueryClientProvider, QueryClient } from "@tanstack/react-query";
|
|
|
373
388
|
import { RainbowKitProvider, getDefaultConfig } from "@rainbow-me/rainbowkit";
|
|
374
389
|
import { mainnet, sepolia } from "wagmi/chains";
|
|
375
390
|
import { http } from "wagmi";
|
|
376
|
-
import {
|
|
391
|
+
import {
|
|
392
|
+
ENSNamesRegistrarComponent,
|
|
393
|
+
SubnameOnChainRegistrarModal,
|
|
394
|
+
} from "@thenamespace/ens-components";
|
|
377
395
|
import "@thenamespace/ens-components/index.css";
|
|
378
396
|
import "@rainbow-me/rainbowkit/styles.css";
|
|
379
397
|
|
|
@@ -393,9 +411,7 @@ function AppProviders({ children }: { children: React.ReactNode }) {
|
|
|
393
411
|
return (
|
|
394
412
|
<WagmiProvider config={wagmiConfig}>
|
|
395
413
|
<QueryClientProvider client={queryClient}>
|
|
396
|
-
<RainbowKitProvider>
|
|
397
|
-
{children}
|
|
398
|
-
</RainbowKitProvider>
|
|
414
|
+
<RainbowKitProvider>{children}</RainbowKitProvider>
|
|
399
415
|
</QueryClientProvider>
|
|
400
416
|
</WagmiProvider>
|
|
401
417
|
);
|
|
@@ -403,11 +419,11 @@ function AppProviders({ children }: { children: React.ReactNode }) {
|
|
|
403
419
|
|
|
404
420
|
function App() {
|
|
405
421
|
const [activeTab, setActiveTab] = useState<"ens" | "subname">("ens");
|
|
406
|
-
|
|
422
|
+
|
|
407
423
|
// ENS Name Registration State
|
|
408
424
|
const [ensName, setEnsName] = useState("");
|
|
409
425
|
const [ensDuration, setEnsDuration] = useState(1);
|
|
410
|
-
|
|
426
|
+
|
|
411
427
|
// Subname Registration State
|
|
412
428
|
const [subnameStep, setSubnameStep] = useState(0);
|
|
413
429
|
const [subname, setSubname] = useState("");
|
|
@@ -421,15 +437,30 @@ function App() {
|
|
|
421
437
|
<AppProviders>
|
|
422
438
|
<div style={{ padding: "20px" }}>
|
|
423
439
|
<div style={{ marginBottom: "20px" }}>
|
|
424
|
-
<button
|
|
440
|
+
<button
|
|
425
441
|
onClick={() => setActiveTab("ens")}
|
|
426
|
-
style={{
|
|
442
|
+
style={{
|
|
443
|
+
marginRight: "10px",
|
|
444
|
+
padding: "10px",
|
|
445
|
+
backgroundColor: activeTab === "ens" ? "#007bff" : "#ccc",
|
|
446
|
+
color: "white",
|
|
447
|
+
border: "none",
|
|
448
|
+
borderRadius: "4px",
|
|
449
|
+
cursor: "pointer",
|
|
450
|
+
}}
|
|
427
451
|
>
|
|
428
452
|
Register ENS Name
|
|
429
453
|
</button>
|
|
430
|
-
<button
|
|
454
|
+
<button
|
|
431
455
|
onClick={() => setActiveTab("subname")}
|
|
432
|
-
style={{
|
|
456
|
+
style={{
|
|
457
|
+
padding: "10px",
|
|
458
|
+
backgroundColor: activeTab === "subname" ? "#007bff" : "#ccc",
|
|
459
|
+
color: "white",
|
|
460
|
+
border: "none",
|
|
461
|
+
borderRadius: "4px",
|
|
462
|
+
cursor: "pointer",
|
|
463
|
+
}}
|
|
433
464
|
>
|
|
434
465
|
Register Subname
|
|
435
466
|
</button>
|