Skip to content

Commit

Permalink
(feat): add a named export (same as default)
Browse files Browse the repository at this point in the history
- because many folks prefer not to use default exports and because
  named exports are more explicit, etc, etc
  • Loading branch information
agilgur5 committed Feb 10, 2022
1 parent 8d84428 commit e48e547
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import React, { Component } from 'react'
import SignaturePad from 'signature_pad'
import trimCanvas from 'trim-canvas'

export default class SignatureCanvas extends Component {
export class SignatureCanvas extends Component {
static propTypes = {
// signature_pad's props
velocityFilterWeight: PropTypes.number,
Expand Down Expand Up @@ -139,3 +139,5 @@ export default class SignatureCanvas extends Component {
return this._sigPad.toData()
}
}

export default SignatureCanvas

0 comments on commit e48e547

Please sign in to comment.