Skip to content

Commit e48e547

Browse files
committed
(feat): add a named export (same as default)
- because many folks prefer not to use default exports and because named exports are more explicit, etc, etc
1 parent 8d84428 commit e48e547

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import React, { Component } from 'react'
33
import SignaturePad from 'signature_pad'
44
import trimCanvas from 'trim-canvas'
55

6-
export default class SignatureCanvas extends Component {
6+
export class SignatureCanvas extends Component {
77
static propTypes = {
88
// signature_pad's props
99
velocityFilterWeight: PropTypes.number,
@@ -139,3 +139,5 @@ export default class SignatureCanvas extends Component {
139139
return this._sigPad.toData()
140140
}
141141
}
142+
143+
export default SignatureCanvas

0 commit comments

Comments
 (0)