Fix the Mega Breaking change
This commit is contained in:
parent
e8c5ba5536
commit
5ae8129084
2 changed files with 4 additions and 4 deletions
|
@ -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}
|
||||||
|
|
|
@ -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),
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue