Skip to content

Commit 93e39a1

Browse files
committed
Fix issue with Ladda import
1 parent 177bb0c commit 93e39a1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/LaddaButton.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React, { Component } from 'react'
22
import PropTypes from 'prop-types'
3-
import Ladda from 'ladda'
3+
import { create } from 'ladda'
44

55
import { SIZES, STYLES } from './constants'
66

@@ -48,7 +48,7 @@ class LaddaButton extends Component {
4848
};
4949

5050
componentDidMount() {
51-
this.laddaInstance = Ladda.create(this.node)
51+
this.laddaInstance = create(this.node)
5252

5353
if (this.props.loading) {
5454
this.laddaInstance.start()

0 commit comments

Comments
 (0)