Fix the Mega Breaking change

This commit is contained in:
hackrush 2017-08-26 00:11:31 +05:30
parent e8c5ba5536
commit 5ae8129084
2 changed files with 4 additions and 4 deletions

View file

@ -170,14 +170,14 @@ class FileActions extends React.PureComponent {
return ( return (
<section className="file-actions"> <section className="file-actions">
{showTipBox ? "" : content} {content}
<Link <Link
label={__("Support")} label={__("Support")}
button="text" button="text"
icon="icon-gift" icon="icon-gift"
onClick={this.handleSupportButtonClicked.bind(this)} onClick={this.handleSupportButtonClicked.bind(this)}
/> />
{showMenu && !showTipBox {showMenu
? <DropDownMenu> ? <DropDownMenu>
<DropDownMenuItem <DropDownMenuItem
key={0} key={0}

View file

@ -7,7 +7,7 @@ class TipLink extends React.PureComponent {
super(props); super(props);
this.state = { this.state = {
tipAmount: "1.00", tipAmount: 1.0,
}; };
} }
@ -24,7 +24,7 @@ class TipLink extends React.PureComponent {
handleSupportPriceChange(event) { handleSupportPriceChange(event) {
this.setState({ this.setState({
tipAmount: event.target.value, tipAmount: Number(event.target.value),
}); });
} }