Skip to content

Commit 91194ce

Browse files
committed
[TOOL-3681] Portal: Fix code identation in reference pages (#6461)
<!-- start pr-codex --> ## PR-Codex overview This PR focuses on improving code readability and fixing a typo in the console log message, as well as adjusting the CSS class for better text formatting in a component. ### Detailed summary - In `packages/thirdweb/src/react/core/utils/wallet.ts`, the console log message was changed from `"Walelt name"` to `"wallet name"` for clarity. - In `apps/portal/src/components/Document/Code.tsx`, the CSS class was modified from `rounded-lg border bg-card font-mono text-sm leading-relaxed` to `whitespace-pre rounded-lg border bg-card font-mono text-sm leading-relaxed` to enhance text formatting. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
1 parent a1141f3 commit 91194ce

File tree

2 files changed

+2
-2
lines changed
  • apps/portal/src/components/Document
  • packages/thirdweb/src/react/core/utils

2 files changed

+2
-2
lines changed

apps/portal/src/components/Document/Code.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export async function CodeBlock(props: {
6868
<div className={cn("group/code relative mb-5", props.containerClassName)}>
6969
<code
7070
className={cn(
71-
"relative block rounded-lg border bg-card font-mono text-sm leading-relaxed",
71+
"relative block whitespace-pre rounded-lg border bg-card font-mono text-sm leading-relaxed",
7272
props.className,
7373
)}
7474
lang={lang}

packages/thirdweb/src/react/core/utils/wallet.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ export function useConnectedWalletDetails(
157157
* import { useWalletInfo } from "thirdweb/react";
158158
*
159159
* const { data: walletInfo } = useWalletInfo("io.metamask");
160-
* console.log("Walelt name", walletInfo?.name);
160+
* console.log("wallet name", walletInfo?.name);
161161
* ```
162162
* @wallet
163163
*/

0 commit comments

Comments
 (0)