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