Skip to content

Commit

Permalink
Add links to TestApp and README (#1072)
Browse files Browse the repository at this point in the history
* readme

* adding a button to docs page
  • Loading branch information
bangtoven authored Nov 17, 2023
1 parent 2a53520 commit 21788de
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

# Coinbase Wallet SDK

- [Playground](https://coinbase.github.io/coinbase-wallet-sdk/)
- [Developer docs](https://docs.cloud.coinbase.com/wallet-sdk/docs)

Coinbase Wallet SDK (formerly WalletLink) lets developers connect their dapps to Coinbase Wallet
on both mobile web (for iOS and Android) and desktop:

Expand Down
6 changes: 6 additions & 0 deletions apps/testapp/src/components/Layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ export const WIDTH_2XL = '1536px';

export function Layout({ children }: LayoutProps) {
const { sdk, sdkVersion, setSDKVersion } = useCBWSDK();

const handleClockDocs = () => {
window.open('https://cbdev.io/walletstart', '_blank');
};

const handleDisconnect = () => {
if (sdk) {
sdk.disconnect();
Expand All @@ -34,6 +39,7 @@ export function Layout({ children }: LayoutProps) {
<Flex justifyContent="space-between" alignItems="center">
<Heading>Coinbase Wallet SDK - Playground</Heading>
<Flex justifyContent="space-between" alignItems="center" gap={4}>
<Button onClick={handleClockDocs}>Docs</Button>
<Menu>
<MenuButton as={Button} rightIcon={<ChevronDownIcon />}>
{`SDK: ${sdkVersion}`}
Expand Down

0 comments on commit 21788de

Please sign in to comment.