diff --git a/src/App.tsx b/src/App.tsx index ea26fb9..d319836 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,4 +1,14 @@ -import { Button, Callout, Container, Flex, Heading, Tabs, Text, TextField } from '@radix-ui/themes'; +import { + Button, + Callout, + Container, + Flex, + Heading, + RadioCards, + Tabs, + Text, + TextField +} from '@radix-ui/themes'; import { useConnectWallet, useSetChain } from '@web3-onboard/react'; import { useEffect, useState } from 'react'; @@ -24,6 +34,7 @@ function App() { const [orderlyKey, setOrderlyKey] = useState(); const [showEOA, setShowEOA] = useState(false); const [activeTab, setActiveTab] = useState('account'); + const [registrationType, setRegistrationType] = useState<'eoa' | 'delegatesigner'>('eoa'); const [{ wallet }, connectWallet] = useConnectWallet(); const [{ connectedChain }] = useSetChain(); @@ -74,71 +85,103 @@ function App() { . - + - + - - - - + )} + + {registrationType === 'delegatesigner' && ( + + + + + + )} {accountId ? ( diff --git a/src/DelegateSigner.tsx b/src/DelegateSigner.tsx index 21f5a88..01806d9 100644 --- a/src/DelegateSigner.tsx +++ b/src/DelegateSigner.tsx @@ -21,8 +21,6 @@ import { DelegateSignerResponse, announceDelegateSigner, delegateAddOrderlyKey, - registerExampleDelegateSigner, - isTestnet, Scope } from './helpers'; @@ -209,25 +207,6 @@ export const DelegateSigner: FC<{ )} - {connectedChain && isTestnet(connectedChain.id) && ( - - )} - {connectedChain && }