Browse Source

Merge pull request #414 from LN-Zap/fix/onboarding-copy

Fix/onboarding copy
renovate/lint-staged-8.x
JimmyMow 7 years ago
committed by GitHub
parent
commit
58acc4e9f3
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 9
      app/components/Onboarding/ConnectionType.js
  2. 2
      app/components/Onboarding/Login.js
  3. 8
      app/components/Onboarding/Onboarding.js
  4. 10
      app/lnd/methods/index.js

9
app/components/Onboarding/ConnectionType.js

@ -8,11 +8,7 @@ const ConnectionType = ({ connectionType, setConnectionType }) => (
<section className={`${styles.option} ${connectionType === 'local' && styles.active}`}>
<div className={`${styles.button}`} onClick={() => setConnectionType('local')}>
{connectionType === 'local' ? <FaCircle /> : <FaCircleThin />}
<span className={styles.label}>Automatic</span>
</div>
<div className={`${styles.description}`}>
In automatic mode, we will check your local machine to see if you already have a Lightning node running.
If so, we will try to use it. If not, we will start up a light-weight neutrino node for you.
<span className={styles.label}>Default</span>
</div>
</section>
<section className={`${styles.option} ${connectionType === 'custom' && styles.active}`}>
@ -20,9 +16,6 @@ const ConnectionType = ({ connectionType, setConnectionType }) => (
{connectionType === 'custom' ? <FaCircle /> : <FaCircleThin />}
<span className={styles.label}>Custom</span>
</div>
<div className={`${styles.description}`}>
Connect to a remote Lightning node or a node running in a non-standard location (advanced users only).
</div>
</section>
</div>
)

2
app/components/Onboarding/Login.js

@ -29,7 +29,7 @@ const Login = ({
unlockingWallet ?
<i className={styles.spinner} />
:
'Log In'
'Unlock'
}
</span>
</div>

8
app/components/Onboarding/Onboarding.js

@ -51,8 +51,12 @@ const Onboarding = ({
case 0.1:
return (
<FormContainer
title='Lightning Connection'
description='How will you connect to the Lightning Network?'
title='How do you want to connect to the Lightning Network?'
description='
By default Zap will spin up a node for you and handle all the nerdy stuff
in the background. However you can also setup a custom node connection and
use Zap to control a remote node if you desire (for advanced users).
'
back={null}
next={() => changeStep(connectionType === 'local' ? 1 : 0.2)}
>

10
app/lnd/methods/index.js

@ -128,7 +128,7 @@ export default function (lnd, event, msg, data) {
.then(newinvoice =>
invoicesController
.getInvoice(lnd, { pay_req: newinvoice.payment_request })
.then(decodedInvoice => {
.then(decodedInvoice =>
event.sender.send(
'createdInvoice',
Object.assign(decodedInvoice, {
@ -138,13 +138,11 @@ export default function (lnd, event, msg, data) {
payment_request: newinvoice.payment_request,
creation_date: Date.now() / 1000
})
)
})
.catch(error => {
))
.catch((error) => {
console.log('decodedInvoice error: ', error)
event.sender.send('invoiceFailed', { error: error.toString() })
})
)
}))
.catch((error) => {
console.log('addInvoice error: ', error)
event.sender.send('invoiceFailed', { error: error.toString() })

Loading…
Cancel
Save