diff --git a/public/icons/navbar/nav-icon-dotnet.svg b/public/icons/navbar/nav-icon-dotnet.svg index a906f58e..62b7d49a 100644 --- a/public/icons/navbar/nav-icon-dotnet.svg +++ b/public/icons/navbar/nav-icon-dotnet.svg @@ -1,4 +1,11 @@ - - - + + + + + + + + + + diff --git a/src/app/account/api-keys/use/page.mdx b/src/app/account/api-keys/use/page.mdx index f3831d8e..ed75ef66 100644 --- a/src/app/account/api-keys/use/page.mdx +++ b/src/app/account/api-keys/use/page.mdx @@ -3,8 +3,7 @@ import { createMetadata } from "@doc"; export const metadata = createMetadata({ title: "Using thirdweb API Key", - description: - "How to use thirdweb API key in TypeScript, React, and Unity.", + description: "How to use thirdweb API key in TypeScript, React, and Unity.", image: { title: "Using thirdweb API Key", icon: "thirdweb", @@ -16,17 +15,17 @@ export const metadata = createMetadata({ - TypeScript - React + TypeScript & React Unity -When writing backends or scripts, you can use the secret key to instantiate the SDK: +When working with backend environments (including React Server Components), you can use the secret key to instantiate the thirdweb Client: ```ts -// Read-only mode -const readOnlySdk = new ThirdwebSDK("goerli", { +import { createThirdwebClient } from "thirdweb"; + +const client = createThirdwebClient({ secretKey: "YOUR_SECRET_KEY", // Use secret key if using on the server, get it from dashboard settings }); ``` @@ -34,30 +33,14 @@ const readOnlySdk = new ThirdwebSDK("goerli", { When using the Typescript SDK for frontend applications, use the client id: ```ts -import { ThirdwebSDK } from "@thirdweb-dev/sdk"; -// Read-only mode -const readOnlySdk = new ThirdwebSDK("goerli", { - clientId: "YOUR_CLIENT_ID", // Use client id if using on the client side, get it from dashboard settings +import { createThirdwebClient } from "thirdweb"; + +const client = createThirdwebClient({ + clientKey: "YOUR_CLIENT_ID", // Use client id if using on the client side, get it from dashboard settings }); ``` - - - - -When using the React SDK, you can use the client id to instantiate the SDK: - -```jsx -import { ThirdwebProvider } from "@thirdweb-dev/react"; - -function MyApp() { - return ( - - - - ); -} -``` +The `client` can be utilized to initiate [contracts](/typescript/v5/contract) or used in some React components such as [ConnectButton](/references/typescript/v5/ConnectButton). diff --git a/src/components/Document/PageFooter.tsx b/src/components/Document/PageFooter.tsx index f1b084e8..4f4b6480 100644 --- a/src/components/Document/PageFooter.tsx +++ b/src/components/Document/PageFooter.tsx @@ -59,7 +59,7 @@ function FooterLinkItem(props: { icon: LucideIcon; }) { return ( -
  • +
  • {props.prefix}