Commit 28d10a50 authored by Roman's avatar Roman

fix(CreateButton) - fix commit 5d9eb722 that always pass actin in default props

parent 6761c092
......@@ -13,7 +13,7 @@ const CreateButton = ({ label, onClick, type, action, disabled, title, buttonSty
CreateButton.defaultProps = {
label: 'New',
action: 'Create',
action: '',
type: '',
title: '',
disabled: false,
......
......@@ -179,7 +179,7 @@ class BalanceEvent extends Component {
{ this.renderConditions() }
</Col>
<Col sm={12}>
<CreateButton onClick={this.addCondition} label="Add New Condition" />
<CreateButton onClick={this.addCondition} label="Add Condition" />
</Col>
</FormGroup>
</Panel>
......
......@@ -511,7 +511,7 @@ class PlanIncludeGroupCreate extends Component {
return (
<div>
<CreateButton onClick={this.handleToggleBoby} type="Group" />
<CreateButton onClick={this.handleToggleBoby} type="Group" label="Create New" />
<Modal show={open} keyboard={false}>
<Modal.Header closeButton onHide={this.handleCancel}>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment