Browse Source

Merge pull request #458 from Empact/lint/minimal-disable

lint: Minimize disabling of linters
renovate/lint-staged-8.x
Ben Woosley 6 years ago
committed by GitHub
parent
commit
71c0fa0fdc
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 23
      app/components/Onboarding/Onboarding.js
  2. 2
      app/reducers/transaction.js

23
app/components/Onboarding/Onboarding.js

@ -98,7 +98,7 @@ const Onboarding = ({
return ( return (
<FormContainer <FormContainer
title="Autopilot" title="Autopilot"
description="Autopilot is an automatic network manager. Instead of manually adding people to build your network to make payments, enable autopilot to automatically connect you to the Lightning Network using 60% of your balance." // eslint-disable-line description="Autopilot is an automatic network manager. Instead of manually adding people to build your network to make payments, enable autopilot to automatically connect you to the Lightning Network using 60% of your balance." // eslint-disable-line max-len
back={() => changeStep(1)} back={() => changeStep(1)}
next={() => startLnd({ connectionType, alias, autopilot })} next={() => startLnd({ connectionType, alias, autopilot })}
> >
@ -107,12 +107,7 @@ const Onboarding = ({
) )
case 3: case 3:
return ( return (
<FormContainer <FormContainer title="Welcome back!" description="Enter your wallet password or create a new wallet" back={null} next={null}>
title="Welcome back!"
description="Enter your wallet password or create a new wallet" // eslint-disable-line
back={null}
next={null}
>
<Login {...initWalletProps.loginProps} /> <Login {...initWalletProps.loginProps} />
</FormContainer> </FormContainer>
) )
@ -120,7 +115,7 @@ const Onboarding = ({
return ( return (
<FormContainer <FormContainer
title="Welcome!" title="Welcome!"
description="Looks like you are new here. Set a password to encrypt your wallet. This password will be needed to unlock Zap in the future" // eslint-disable-line description="Looks like you are new here. Set a password to encrypt your wallet. This password will be needed to unlock Zap in the future" // eslint-disable-line max-len
back={null} back={null}
next={() => { next={() => {
// dont allow the user to move on if the confirmation password doesnt match the original password // dont allow the user to move on if the confirmation password doesnt match the original password
@ -138,7 +133,7 @@ const Onboarding = ({
return ( return (
<FormContainer <FormContainer
title={"Alright, let's get set up"} title={"Alright, let's get set up"}
description="Would you like to create a new wallet or import an existing one?" // eslint-disable-line description="Would you like to create a new wallet or import an existing one?"
back={() => changeStep(4)} back={() => changeStep(4)}
next={() => (initWalletProps.signupProps.signupForm.create ? changeStep(6) : changeStep(5.1))} next={() => (initWalletProps.signupProps.signupForm.create ? changeStep(6) : changeStep(5.1))}
> >
@ -149,7 +144,7 @@ const Onboarding = ({
return ( return (
<FormContainer <FormContainer
title="Import your seed" title="Import your seed"
description={"Recovering a wallet, nice. You don't need anyone else, you got yourself :)"} // eslint-disable-line description="Recovering a wallet, nice. You don't need anyone else, you got yourself :)"
back={() => changeStep(5)} back={() => changeStep(5)}
next={() => changeStep(5.2)} next={() => changeStep(5.2)}
> >
@ -160,7 +155,7 @@ const Onboarding = ({
return ( return (
<FormContainer <FormContainer
title="Seed passphrase" title="Seed passphrase"
description={"Enter your cipherseed passphrase (or just submit if you don't have one)"} // eslint-disable-line description="Enter your cipherseed passphrase (or just submit if you don't have one)"
back={() => changeStep(5)} back={() => changeStep(5)}
next={() => { next={() => {
const recoverySeed = recoverFormProps.seedInput.map(input => input.word) const recoverySeed = recoverFormProps.seedInput.map(input => input.word)
@ -175,7 +170,7 @@ const Onboarding = ({
return ( return (
<FormContainer <FormContainer
title="Save your wallet seed" title="Save your wallet seed"
description="Please save these 24 words securely! This will allow you to recover your wallet in the future" // eslint-disable-line description="Please save these 24 words securely! This will allow you to recover your wallet in the future"
back={() => changeStep(5)} back={() => changeStep(5)}
next={() => changeStep(7)} next={() => changeStep(7)}
> >
@ -186,7 +181,7 @@ const Onboarding = ({
return ( return (
<FormContainer <FormContainer
title="Re-enter your seed" title="Re-enter your seed"
description="Yeah I know, might be annoying, but just to be safe!" // eslint-disable-line description="Yeah I know, might be annoying, but just to be safe!"
back={() => changeStep(6)} back={() => changeStep(6)}
next={() => { next={() => {
// don't allow them to move on if they havent re-entered the seed correctly // don't allow them to move on if they havent re-entered the seed correctly
@ -204,7 +199,7 @@ const Onboarding = ({
return ( return (
<FormContainer <FormContainer
title="Encrypt your seed" title="Encrypt your seed"
description="Totally optional, but we encourage it. Set a password that will be used to encrypt your wallet seed" // eslint-disable-line description="Totally optional, but we encourage it. Set a password that will be used to encrypt your wallet seed" // eslint-disable-line max-len
back={() => changeStep(6)} back={() => changeStep(6)}
next={() => { next={() => {
// dont allow the user to move on if the confirmation password doesnt match the original password // dont allow the user to move on if the confirmation password doesnt match the original password

2
app/reducers/transaction.js

@ -108,7 +108,7 @@ export const newTransaction = (event, { transaction }) => dispatch => {
const notifBody = const notifBody =
transaction.amount > 0 transaction.amount > 0
? "Lucky you, you just received a new on-chain transaction. I'm jealous." ? "Lucky you, you just received a new on-chain transaction. I'm jealous."
: "Hate to see 'em go but love to watch 'em leave. Your on-chain transaction successfully sent." // eslint-disable-line max-len : "Hate to see 'em go but love to watch 'em leave. Your on-chain transaction successfully sent."
showNotification(notifTitle, notifBody) showNotification(notifTitle, notifBody)

Loading…
Cancel
Save