Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix code snippet spacing #1644

Merged
merged 1 commit into from
Nov 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion site/docs/components/landing/CheckoutDemo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export const checkoutDemoCode = `
</Checkout>
)
}
`;
`;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

without the indent here, the code snippet can be cut-off by the preview container. with the indents, the scroll will always take the reader to the bottom of the string.


const GITHUB_LINK = 'https://github.com/coinbase/onchain-commerce-template';

Expand Down
2 changes: 1 addition & 1 deletion site/docs/components/landing/ComponentPreview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ function PreviewContainer({
</button>
)}
</div>
<div className="flex overflow-auto py-6">
<div className="flex overflow-auto">
<div
className={`${
activeSubTab === 'preview' ? 'flex' : 'hidden'
Expand Down
2 changes: 1 addition & 1 deletion site/docs/components/landing/FundDemo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export const fundDemoCode = `
</>
)
}
`;
`;

function FundDemo() {
return (
Expand Down
2 changes: 1 addition & 1 deletion site/docs/components/landing/IdentityDemo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export const identityDemoCode = `
</Identity>
)
}
`;
`;

function IdentityDemo() {
return (
Expand Down
2 changes: 1 addition & 1 deletion site/docs/components/landing/NftMintCardDemo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export const nftMintCardDemoCode = `
/>
)
}
`;
`;

export default function NftMintCardDemo() {
return (
Expand Down
2 changes: 1 addition & 1 deletion site/docs/components/landing/SwapDemo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export const swapDemoCode = `
/>
);
}
`;
`;

function SwapDemo() {
return (
Expand Down
2 changes: 1 addition & 1 deletion site/docs/components/landing/TransactionDemo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export const transactionDemoCode = `
</>
);
}
`;
`;

function TransactionDemo() {
return (
Expand Down
2 changes: 1 addition & 1 deletion site/docs/components/landing/WalletDemo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export const walletDemoCode = `
function WalletDefaultDemo() {
return <WalletDefault />
}
`;
`;

function WalletDemo() {
return (
Expand Down