fixed naming correction buttonWithSuperPower -> buttonWithStyle

pull/369/head
Roopkumar Das 2 years ago committed by GitHub
parent 8b41cd49c3
commit 82916d22b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -69,7 +69,7 @@ const buttonWithStyle = (CompParam) => {
return <CompParam {...props} style={buttonStyles} />
}
}
const NewButton = buttonWithSuperPower(Button)
const NewButton = buttonWithStyle(Button)
class App extends Component {
render() {
@ -149,12 +149,12 @@ const buttonWithStyles = (CompParam, name = 'default') => {
}
}
const NewButton = buttonWithSuperPower(Button)
const ReactButton = buttonWithSuperPower(Button, 'react')
const InfoButton = buttonWithSuperPower(Button, 'info')
const SuccessButton = buttonWithSuperPower(Button, 'success')
const WarningButton = buttonWithSuperPower(Button, 'warning')
const DangerButton = buttonWithSuperPower(Button, 'danger')
const NewButton = buttonWithStyles(Button)
const ReactButton = buttonWithStyles(Button, 'react')
const InfoButton = buttonWithStyles(Button, 'info')
const SuccessButton = buttonWithStyles(Button, 'success')
const WarningButton = buttonWithStyles(Button, 'warning')
const DangerButton = buttonWithStyles(Button, 'danger')
class App extends Component {
render() {

Loading…
Cancel
Save