QR Button for Obyte dApp
npm install obyte-qr-buttonnpm i obyte-qr-buttonUse
import QRButton from "obyte-qr-button"Required packages:
- react
- react-dom
- antd (with import styles)
- @ant-design/icons
Example
`js
import QRButton from "obyte-qr-button" const config = {
title: Scan this QR code
with your mobile phone,
downloadTitle: "Download Obyte wallet",
tooltip: "This will open your Obyte wallet installed on this computer and send the transaction",
tooltipMobile: "Send the transaction from your mobile phone",
install: "Install Obyte wallet for [ios] or [android] if you don't have one yet",
obyteIn: "Obyte in"
}
export const App = () => {
return {console.log("click!")}}>Send
}
``