scribo-signer
Install
npm install --save @kenetto/scribo-signer
Usage
import React, { Component } from 'react'
import ReceiptSigner from '@kenetto/scribo-signer'
import '@kenetto/scribo-signer/dist/styles.css'
class Example extends Component {
render () {
return (
<ReceiptSigner
handleConfirmationCompletion={() => {}}
receipts={[]}
defaultPhone={''} />
)
}
}
Props
name | type | required | default | description |
---|---|---|---|---|
handleConfirmationCompletion | Function | Yes | Function to be executed after all items are signed | |
receipts | Array | Yes |
Array of items containing id and elements. Each element should include name and units. |
|
defaultPhone | String | No | Default phone number |