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

test with lower version #13

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
Binary file modified bun.lockb
Binary file not shown.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"test:coverage": "vitest run --coverage"
},
"dependencies": {
"@coinbase/onchainkit": "^0.34.1",
"@coinbase/onchainkit": "^0.33.4",
"next": "^14.2.5",
"permissionless": "^0.1.26",
"react": "^18",
Expand Down
10 changes: 3 additions & 7 deletions src/components/OnchainStoreCart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,12 @@ export default function OnchainStoreCart() {
description,
pricing_type: 'fixed_price',
local_price: {
// NOTE: The values are set to zero on the template as we're not actually looking to sell anything here.
// To test with real values, replace with totalSum.toString() in real app
amount: '0',
amount: totalSum.toString(),
currency: 'USD',
},
};
return createCharge(chargeDetails);
}, [createCharge, quantities]);
}, [createCharge, quantities, totalSum]);

return (
<div className="-mx-[50vw] fixed right-1/2 bottom-0 left-1/2 w-screen border-gray-200 border-t bg-[white]">
Expand All @@ -58,9 +56,7 @@ export default function OnchainStoreCart() {
<PayButton
coinbaseBranded={true}
text="Pay with Crypto"
className="mt-0"
// NOTE: comment back in to disable $0 amount in real app
// disabled={!totalSum}
disabled={!totalSum}
/>
</Pay>
</div>
Expand Down
6 changes: 3 additions & 3 deletions src/svg/ExternalLinkSvg.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ export function ExternalLinkSvg() {
<path
d="M6 14L14 6M14 6H8M14 6V12"
stroke="black"
stroke-width="1.5"
stroke-linecap="round"
stroke-linejoin="round"
strokeWidth="1.5"
strokeLinecap="round"
strokeLinejoin="round"
/>
</svg>
);
Expand Down