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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with
12 additions and
17 deletions
-
app/components/Onboarding/ConnectionType.js
-
app/components/Onboarding/Login.js
-
app/components/Onboarding/Onboarding.js
-
app/lnd/methods/index.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> |
|
|
|
) |
|
|
|
|
|
@ -29,7 +29,7 @@ const Login = ({ |
|
|
|
unlockingWallet ? |
|
|
|
<i className={styles.spinner} /> |
|
|
|
: |
|
|
|
'Log In' |
|
|
|
'Unlock' |
|
|
|
} |
|
|
|
</span> |
|
|
|
</div> |
|
|
|
|
|
@ -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)} |
|
|
|
> |
|
|
|
|
|
@ -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() }) |
|
|
|