-
Notifications
You must be signed in to change notification settings - Fork 360
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: wallet connection via deeplink
- Loading branch information
Gancho Radkov
committed
Jan 12, 2024
1 parent
9d6d0ae
commit 0865330
Showing
2 changed files
with
31 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { Text } from '@nextui-org/react' | ||
import { Fragment } from 'react' | ||
import { useRouter } from 'next/router' | ||
import WalletConnectPage from './walletconnect' | ||
|
||
export default function DeepLinkPairingPage() { | ||
const router = useRouter() | ||
|
||
const uri = router.query.uri as string | ||
|
||
if (!uri) { | ||
return ( | ||
<Fragment> | ||
<Text css={{ opacity: '0.5', textAlign: 'center', marginTop: '$20' }}> | ||
No URI provided via `?uri=` params | ||
</Text> | ||
</Fragment> | ||
) | ||
} | ||
|
||
return <WalletConnectPage deepLink={uri} /> | ||
} |