Skip to content

Commit

Permalink
Use button instead of input
Browse files Browse the repository at this point in the history
  • Loading branch information
ctapang committed Dec 11, 2023
1 parent ad8a9a1 commit f2807d0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sendroks/react-coinbase-commerce",
"version": "0.0.10",
"version": "0.0.11",
"description": "A react component to easily embed a Coinbase Commerce Checkout within your application",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
Expand Down
4 changes: 3 additions & 1 deletion src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,9 @@ export class CoinbaseCommerceButton extends Component<Props & ButtonHTMLAttribut
/>
)
: (
<input type="button" onClick={()=>this.onClick()} className="coinbase-commerce-button" />
<button onClick={()=>this.onClick()} className="coinbase-commerce-button" >
Pay with crypto
</button>
)}
</div>
)
Expand Down

0 comments on commit f2807d0

Please sign in to comment.