Change all onTouchTap to onClick
This commit is contained in:
@@ -22,7 +22,7 @@ export class BlockchainErrDialog extends React.Component<BlockchainErrDialogProp
|
||||
key="blockchainErrOk"
|
||||
label="Ok"
|
||||
primary={true}
|
||||
onTouchTap={this.props.toggleDialogFn.bind(this.props.toggleDialogFn, false)}
|
||||
onClick={this.props.toggleDialogFn.bind(this.props.toggleDialogFn, false)}
|
||||
/>,
|
||||
];
|
||||
|
||||
|
||||
@@ -54,8 +54,8 @@ export class EthWethConversionDialog extends React.Component<
|
||||
}
|
||||
public render(): React.ReactNode {
|
||||
const convertDialogActions = [
|
||||
<FlatButton key="cancel" label="Cancel" onTouchTap={this._onCancel.bind(this)} />,
|
||||
<FlatButton key="convert" label="Convert" primary={true} onTouchTap={this._onConvertClick.bind(this)} />,
|
||||
<FlatButton key="cancel" label="Cancel" onClick={this._onCancel.bind(this)} />,
|
||||
<FlatButton key="convert" label="Convert" primary={true} onClick={this._onConvertClick.bind(this)} />,
|
||||
];
|
||||
const title = this.props.direction === Side.Deposit ? 'Wrap ETH' : 'Unwrap WETH';
|
||||
return !_.isUndefined(this.props.etherBalanceInWei) ? (
|
||||
|
||||
@@ -64,7 +64,7 @@ export class LedgerConfigDialog extends React.Component<LedgerConfigDialogProps,
|
||||
}
|
||||
public render(): React.ReactNode {
|
||||
const dialogActions = [
|
||||
<FlatButton key="ledgerConnectCancel" label="Cancel" onTouchTap={this._onClose.bind(this)} />,
|
||||
<FlatButton key="ledgerConnectCancel" label="Cancel" onClick={this._onClose.bind(this)} />,
|
||||
];
|
||||
const dialogTitle =
|
||||
this.state.stepIndex === LedgerSteps.CONNECT ? 'Connect to your Ledger' : 'Select desired address';
|
||||
|
||||
@@ -13,7 +13,7 @@ export const PortalDisclaimerDialog = (props: PortalDisclaimerDialogProps) => {
|
||||
<Dialog
|
||||
title="0x Portal Disclaimer"
|
||||
titleStyle={{ fontWeight: 100 }}
|
||||
actions={[<FlatButton key="portalAgree" label="I Agree" onTouchTap={props.onToggleDialog} />]}
|
||||
actions={[<FlatButton key="portalAgree" label="I Agree" onClick={props.onToggleDialog} />]}
|
||||
open={props.isOpen}
|
||||
onRequestClose={props.onToggleDialog}
|
||||
autoScrollBodyContent={true}
|
||||
|
||||
@@ -38,13 +38,13 @@ export class SendDialog extends React.Component<SendDialogProps, SendDialogState
|
||||
}
|
||||
public render(): React.ReactNode {
|
||||
const transferDialogActions = [
|
||||
<FlatButton key="cancelTransfer" label="Cancel" onTouchTap={this._onCancel.bind(this)} />,
|
||||
<FlatButton key="cancelTransfer" label="Cancel" onClick={this._onCancel.bind(this)} />,
|
||||
<FlatButton
|
||||
key="sendTransfer"
|
||||
disabled={this._hasErrors()}
|
||||
label="Send"
|
||||
primary={true}
|
||||
onTouchTap={this._onSendClick.bind(this)}
|
||||
onClick={this._onSendClick.bind(this)}
|
||||
/>,
|
||||
];
|
||||
return (
|
||||
|
||||
@@ -43,12 +43,12 @@ export class TrackTokenConfirmationDialog extends React.Component<
|
||||
<FlatButton
|
||||
key="trackNo"
|
||||
label="No"
|
||||
onTouchTap={this._onTrackConfirmationRespondedAsync.bind(this, false)}
|
||||
onClick={this._onTrackConfirmationRespondedAsync.bind(this, false)}
|
||||
/>,
|
||||
<FlatButton
|
||||
key="trackYes"
|
||||
label="Yes"
|
||||
onTouchTap={this._onTrackConfirmationRespondedAsync.bind(this, true)}
|
||||
onClick={this._onTrackConfirmationRespondedAsync.bind(this, true)}
|
||||
/>,
|
||||
]}
|
||||
open={this.props.isOpen}
|
||||
|
||||
@@ -14,7 +14,7 @@ export const U2fNotSupportedDialog = (props: U2fNotSupportedDialogProps) => {
|
||||
<Dialog
|
||||
title="U2F Not Supported"
|
||||
titleStyle={{ fontWeight: 100 }}
|
||||
actions={[<FlatButton key="u2fNo" label="Ok" onTouchTap={props.onToggleDialog} />]}
|
||||
actions={[<FlatButton key="u2fNo" label="Ok" onClick={props.onToggleDialog} />]}
|
||||
open={props.isOpen}
|
||||
onRequestClose={props.onToggleDialog}
|
||||
autoScrollBodyContent={true}
|
||||
|
||||
@@ -14,7 +14,7 @@ export const WrappedEthSectionNoticeDialog = (props: WrappedEthSectionNoticeDial
|
||||
title="Dedicated Wrapped Ether Section"
|
||||
titleStyle={{ fontWeight: 100 }}
|
||||
actions={[
|
||||
<FlatButton key="acknowledgeWrapEthSection" label="Sounds good" onTouchTap={props.onToggleDialog} />,
|
||||
<FlatButton key="acknowledgeWrapEthSection" label="Sounds good" onClick={props.onToggleDialog} />,
|
||||
]}
|
||||
open={props.isOpen}
|
||||
onRequestClose={props.onToggleDialog}
|
||||
|
||||
@@ -18,12 +18,12 @@ export const FillWarningDialog = (props: FillWarningDialogProps) => {
|
||||
<FlatButton
|
||||
key="fillWarningCancel"
|
||||
label="Cancel"
|
||||
onTouchTap={() => props.onToggleDialog(didCancel)} // tslint:disable-line:jsx-no-lambda
|
||||
onClick={() => props.onToggleDialog(didCancel)} // tslint:disable-line:jsx-no-lambda
|
||||
/>,
|
||||
<FlatButton
|
||||
key="fillWarningContinue"
|
||||
label="Fill Order"
|
||||
onTouchTap={() => props.onToggleDialog(!didCancel)} // tslint:disable-line:jsx-no-lambda
|
||||
onClick={() => props.onToggleDialog(!didCancel)} // tslint:disable-line:jsx-no-lambda
|
||||
/>,
|
||||
]}
|
||||
open={props.isOpen}
|
||||
|
||||
@@ -73,12 +73,12 @@ export class AssetPicker extends React.Component<AssetPickerProps, AssetPickerSt
|
||||
<FlatButton
|
||||
key="noTracking"
|
||||
label="No"
|
||||
onTouchTap={this._onTrackConfirmationRespondedAsync.bind(this, false)}
|
||||
onClick={this._onTrackConfirmationRespondedAsync.bind(this, false)}
|
||||
/>,
|
||||
<FlatButton
|
||||
key="yesTrack"
|
||||
label="Yes"
|
||||
onTouchTap={this._onTrackConfirmationRespondedAsync.bind(this, true)}
|
||||
onClick={this._onTrackConfirmationRespondedAsync.bind(this, true)}
|
||||
/>,
|
||||
],
|
||||
},
|
||||
|
||||
@@ -165,7 +165,7 @@ export class TokenBalances extends React.Component<TokenBalancesProps, TokenBala
|
||||
key="errorOkBtn"
|
||||
label="Ok"
|
||||
primary={true}
|
||||
onTouchTap={this._onErrorDialogToggle.bind(this, false)}
|
||||
onClick={this._onErrorDialogToggle.bind(this, false)}
|
||||
/>,
|
||||
];
|
||||
const isTestNetwork = utils.isTestNetwork(this.props.networkId);
|
||||
|
||||
@@ -410,7 +410,7 @@ export class TopBar extends React.Component<TopBarProps, TopBarState> {
|
||||
<MenuItem className="py2">{this.props.translate.get(Key.Blog, Deco.Cap)}</MenuItem>
|
||||
</a>
|
||||
<Link to={`${WebsitePaths.FAQ}`} className="text-decoration-none">
|
||||
<MenuItem className="py2" onTouchTap={this._onMenuButtonClick.bind(this)}>
|
||||
<MenuItem className="py2" onClick={this._onMenuButtonClick.bind(this)}>
|
||||
{this.props.translate.get(Key.Faq, Deco.Cap)}
|
||||
</MenuItem>
|
||||
</Link>
|
||||
|
||||
@@ -71,7 +71,7 @@ export class LifeCycleRaisedButton extends React.Component<LifeCycleRaisedButton
|
||||
style={{ width: '100%' }}
|
||||
backgroundColor={this.props.backgroundColor}
|
||||
labelColor={this.props.labelColor}
|
||||
onTouchTap={this.onClickAsync.bind(this)}
|
||||
onClick={this.onClickAsync.bind(this)}
|
||||
disabled={this.props.isDisabled || this.state.buttonState !== ButtonState.READY}
|
||||
/>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user