Skip to content

Commit 92c81a8

Browse files
Edit SDK builder content (#2266)
* Edit SDK builder. Signed-off-by: bgravenorst <byron.gravenorst@consensys.net> * Minor update to language. Signed-off-by: bgravenorst <byron.gravenorst@consensys.net> * Apply suggestions from code review Co-authored-by: Alexandra Carrillo <12214231+alexandratran@users.noreply.github.com> * Address reviewer feedback. Signed-off-by: bgravenorst <byron.gravenorst@consensys.net> --------- Signed-off-by: bgravenorst <byron.gravenorst@consensys.net> Co-authored-by: Alexandra Carrillo <12214231+alexandratran@users.noreply.github.com>
1 parent 8811d25 commit 92c81a8

File tree

8 files changed

+34
-15
lines changed

8 files changed

+34
-15
lines changed

src/components/NavDropdown/Products.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ <h2>Extend and scale</h2>
108108
</svg>
109109
</span>
110110
<div>
111-
<h2>Metamask SDK</h2>
111+
<h2>MetaMask SDK</h2>
112112
<p>Seamlessly connect your dapp to MetaMask extension and mobile.</p>
113113
</div>
114114
</a>

src/pages/quickstart/builder/choices.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export const METAMASK_SDK = 'METAMASK_SDK'
66

77
// Product choices
88
export const PRODUCTS: DisplayChoice[] = [
9-
{ key: METAMASK_SDK, displayName: 'Metamask SDK' },
9+
{ key: METAMASK_SDK, displayName: 'MetaMask SDK' },
1010
{ key: EMBEDDED_WALLETS, displayName: 'Embedded Wallets' },
1111
]
1212

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
### Connect and use provider
1+
### Connect and use the provider
22

33
Connect to MetaMask and get the provider for RPC requests.
44

55
`MMSDK.connect()` handles cross-platform connection (desktop and mobile), including deeplinking.
66

7-
Use `provider.request()` for arbitrary [JSON-RPC requests](/wallet/reference/json-rpc-methods) like `eth_chainId` or `eth_getBalance`, or for [batching requests](../guides/batch-requests.md) via `metamask_batch`.
7+
Use `provider.request()` for arbitrary [JSON-RPC requests](/wallet/reference/json-rpc-methods) like
8+
`eth_chainId` or `eth_getBalance`, or for [batching requests](/sdk/guides/batch-requests) via
9+
`metamask_batch`.
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
### Initialize the MetaMask SDK
1+
### Initialize MetaMask SDK
22

3-
The MetaMask SDK can be initialized with the following options:
3+
Initialize MetaMask SDK with these options:
44

5-
- `dappMetadata` - Ensures trust by showing your dapp's name, url, and iconUrl during connection.
6-
- `infuraAPIKey` - Enables read-only RPC and load‑balancing.
5+
- `dappMetadata` - Displays your dapp's name, URL, and icon URL during connection.
6+
- `infuraAPIKey` - Enables the read-only RPC and load‑balancing.
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
### Install the MetaMask SDK
1+
### Install MetaMask SDK
22

3-
Install the MetaMask SDK package in your React project.
3+
Install MetaMask SDK in your React project.
44

55
```bash npm2yarn
66
npm install --save @metamask/sdk
77
```
88

9-
[![Npm package monthly downloads](https://badgen.net/npm/dm/@metamask/sdk)](https://www.npmjs.com/package/@metamask/sdk) [![](https://data.jsdelivr.com/v1/package/npm/@metamask/sdk/badge)](https://www.jsdelivr.com/package/npm/@metamask/sdk)
9+
[![npm package monthly downloads](https://badgen.net/npm/dm/@metamask/sdk)](https://www.npmjs.com/package/@metamask/sdk) [![](https://data.jsdelivr.com/v1/package/npm/@metamask/sdk/badge)](https://www.jsdelivr.com/package/npm/@metamask/sdk)

src/pages/quickstart/builder/metamask-sdk/react/stepContent/reactQuickStart.mdx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
### MetaMask SDK - React Quickstart
1+
### MetaMask SDK - React quickstart
22

3-
Seamlessly connect to MetaMask Wallet using the MetaMask SDK in your React application.
3+
This quickstart shows you how to connect a React application to the MetaMask wallet using
4+
MetaMask SDK.
45

5-
Start by cloning the React Quickstart application.
6+
Clone the React quickstart application.
67

78
```shell
89
npx degit MetaMask/metamask-sdk-examples/quickstarts/react mm-react-quickstart
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
### Disconnect from MetaMask Wallet
1+
### Disconnect from MetaMask
22

33
Use the `MMSDK.terminate()` method to disconnect from MetaMask.

src/pages/quickstart/styles.module.css

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
.stepBody a {
2+
color: var(--ifm-link-color);
3+
font-weight: 500;
4+
text-decoration: underline;
5+
text-decoration-color: var(--ifm-link-color);
6+
text-decoration-thickness: .1rem;
7+
text-underline-offset: .4rem;
8+
transition: color var(--ifm-transition-fast) var(--ifm-transition-timing-default);
9+
}
10+
.stepBody a:hover,
11+
.stepBody a:focus {
12+
color: var(--ifm-link-hover-color);
13+
text-decoration: underline;
14+
text-decoration-color: var(--ifm-link-hover-color);
15+
}
16+
117
.container {
218
width: 100%;
319
height: 100%;

0 commit comments

Comments
 (0)