mirror of
https://github.com/trezor/trezor-wallet
synced 2024-11-30 12:18:09 +00:00
Fixed ecma version and eslint problems
This commit is contained in:
parent
17aa5ff194
commit
613b516e31
@ -57,8 +57,7 @@
|
|||||||
"ecmaVersion": 7,
|
"ecmaVersion": 7,
|
||||||
"sourceType": "module",
|
"sourceType": "module",
|
||||||
"ecmaFeatures": {
|
"ecmaFeatures": {
|
||||||
"jsx": true,
|
"jsx": true
|
||||||
"experimentalObjectRestSpread": true
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -45,7 +45,8 @@ const Tooltip = ({
|
|||||||
</Link>
|
</Link>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
</ContentWrapper>)}
|
</ContentWrapper>
|
||||||
|
)}
|
||||||
>
|
>
|
||||||
{children}
|
{children}
|
||||||
</RcTooltip>
|
</RcTooltip>
|
||||||
|
@ -127,7 +127,8 @@ class QrModal extends React.Component<Props, State> {
|
|||||||
{!this.state.readerLoaded && (
|
{!this.state.readerLoaded && (
|
||||||
<CameraPlaceholder>
|
<CameraPlaceholder>
|
||||||
Waiting for camera...
|
Waiting for camera...
|
||||||
</CameraPlaceholder>)
|
</CameraPlaceholder>
|
||||||
|
)
|
||||||
}
|
}
|
||||||
</Padding>
|
</Padding>
|
||||||
<StyledQrReader
|
<StyledQrReader
|
||||||
|
@ -68,7 +68,8 @@ const getDeviceContextModal = (props: Props) => {
|
|||||||
<Pin
|
<Pin
|
||||||
device={modal.device}
|
device={modal.device}
|
||||||
onPinSubmit={modalActions.onPinSubmit}
|
onPinSubmit={modalActions.onPinSubmit}
|
||||||
/>);
|
/>
|
||||||
|
);
|
||||||
|
|
||||||
case UI.INVALID_PIN:
|
case UI.INVALID_PIN:
|
||||||
return <InvalidPin device={modal.device} />;
|
return <InvalidPin device={modal.device} />;
|
||||||
@ -79,7 +80,8 @@ const getDeviceContextModal = (props: Props) => {
|
|||||||
device={modal.device}
|
device={modal.device}
|
||||||
selectedDevice={props.wallet.selectedDevice}
|
selectedDevice={props.wallet.selectedDevice}
|
||||||
onPassphraseSubmit={modalActions.onPassphraseSubmit}
|
onPassphraseSubmit={modalActions.onPassphraseSubmit}
|
||||||
/>);
|
/>
|
||||||
|
);
|
||||||
|
|
||||||
case 'ButtonRequest_PassphraseType':
|
case 'ButtonRequest_PassphraseType':
|
||||||
return <PassphraseType device={modal.device} />;
|
return <PassphraseType device={modal.device} />;
|
||||||
@ -110,7 +112,8 @@ const getDeviceContextModal = (props: Props) => {
|
|||||||
onCancel={modalActions.onCancel}
|
onCancel={modalActions.onCancel}
|
||||||
showAddress={props.receiveActions.showAddress}
|
showAddress={props.receiveActions.showAddress}
|
||||||
showUnverifiedAddress={props.receiveActions.showUnverifiedAddress}
|
showUnverifiedAddress={props.receiveActions.showUnverifiedAddress}
|
||||||
/>);
|
/>
|
||||||
|
);
|
||||||
|
|
||||||
case CONNECT.REMEMBER_REQUEST:
|
case CONNECT.REMEMBER_REQUEST:
|
||||||
return (
|
return (
|
||||||
@ -119,7 +122,8 @@ const getDeviceContextModal = (props: Props) => {
|
|||||||
instances={modal.instances}
|
instances={modal.instances}
|
||||||
onRememberDevice={modalActions.onRememberDevice}
|
onRememberDevice={modalActions.onRememberDevice}
|
||||||
onForgetDevice={modalActions.onForgetDevice}
|
onForgetDevice={modalActions.onForgetDevice}
|
||||||
/>);
|
/>
|
||||||
|
);
|
||||||
|
|
||||||
case CONNECT.FORGET_REQUEST:
|
case CONNECT.FORGET_REQUEST:
|
||||||
return (
|
return (
|
||||||
@ -127,7 +131,8 @@ const getDeviceContextModal = (props: Props) => {
|
|||||||
device={modal.device}
|
device={modal.device}
|
||||||
onForgetSingleDevice={modalActions.onForgetSingleDevice}
|
onForgetSingleDevice={modalActions.onForgetSingleDevice}
|
||||||
onCancel={modalActions.onCancel}
|
onCancel={modalActions.onCancel}
|
||||||
/>);
|
/>
|
||||||
|
);
|
||||||
|
|
||||||
case CONNECT.TRY_TO_DUPLICATE:
|
case CONNECT.TRY_TO_DUPLICATE:
|
||||||
return (
|
return (
|
||||||
@ -136,7 +141,8 @@ const getDeviceContextModal = (props: Props) => {
|
|||||||
devices={props.devices}
|
devices={props.devices}
|
||||||
onDuplicateDevice={modalActions.onDuplicateDevice}
|
onDuplicateDevice={modalActions.onDuplicateDevice}
|
||||||
onCancel={modalActions.onCancel}
|
onCancel={modalActions.onCancel}
|
||||||
/>);
|
/>
|
||||||
|
);
|
||||||
|
|
||||||
case CONNECT.REQUEST_WALLET_TYPE:
|
case CONNECT.REQUEST_WALLET_TYPE:
|
||||||
return (
|
return (
|
||||||
@ -144,7 +150,8 @@ const getDeviceContextModal = (props: Props) => {
|
|||||||
device={modal.device}
|
device={modal.device}
|
||||||
onWalletTypeRequest={modalActions.onWalletTypeRequest}
|
onWalletTypeRequest={modalActions.onWalletTypeRequest}
|
||||||
onCancel={modalActions.onCancel}
|
onCancel={modalActions.onCancel}
|
||||||
/>);
|
/>
|
||||||
|
);
|
||||||
|
|
||||||
default:
|
default:
|
||||||
return null;
|
return null;
|
||||||
|
@ -200,7 +200,8 @@ const AdvancedForm = (props: Props) => {
|
|||||||
{ showDefaultGasLimitButton && (
|
{ showDefaultGasLimitButton && (
|
||||||
<Right>
|
<Right>
|
||||||
<StyledLink onClick={setDefaultGasLimit} isGreen>Set default</StyledLink>
|
<StyledLink onClick={setDefaultGasLimit} isGreen>Set default</StyledLink>
|
||||||
</Right>)
|
</Right>
|
||||||
|
)
|
||||||
}
|
}
|
||||||
</InputLabelWrapper>
|
</InputLabelWrapper>
|
||||||
)}
|
)}
|
||||||
|
@ -107,7 +107,8 @@ const AccountSummary = (props: Props) => {
|
|||||||
size={24}
|
size={24}
|
||||||
/>
|
/>
|
||||||
</StyledTooltip>
|
</StyledTooltip>
|
||||||
</H2Wrapper>)
|
</H2Wrapper>
|
||||||
|
)
|
||||||
}
|
}
|
||||||
</React.Fragment>
|
</React.Fragment>
|
||||||
</Content>
|
</Content>
|
||||||
|
Loading…
Reference in New Issue
Block a user