Conversation
e4e2cff
to
00b130b
Compare
00b130b
to
4044add
Compare
4044add
to
f145097
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
some minor feedback
const isSettled = invoice.state ? invoice.state === 'SETTLED' : invoice.settled | ||
|
||
const isCancelled = invoice.state === 'CANCELED' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might be a good idea to extract a constant because string is 'CANCE_L_E' (one L) while the var name is cancelled (2 Ls), so while both of these are correct it might be easy to confuse later.
@@ -169,11 +187,12 @@ const ACTION_HANDLERS = { | |||
[SET_MODALS]: (state, { modals }) => { | |||
state.modals = modals | |||
}, | |||
|
|||
[SET_TOP_MODAL]: (state, { modal }) => { | |||
state.modals[0] = modal |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is it desired that we overwrite the topmost modal as opposed to shifting the queue ?
<FormattedMessage {...messages.payment_request_keysend} /> | ||
) : ( | ||
<QRCode value={paymentRequest.toUpperCase()} /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need to check for paymentRequest
to be != null ? Looks like it's possible (isKeySend being false doesn't automatically mean that paymentRequest is set or does it?).
</Text> | ||
) : ( | ||
<Text color={getStatusColor()} fontWeight="light"> | ||
<>{stateDisplayName}</> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is fragment needed here?
@@ -123,10 +123,22 @@ const commitString = createSelector(version, v => { | |||
return c ? c.replace('commit=', '') : undefined | |||
}) | |||
|
|||
/** | |||
* hasRouterSupport - Check whether node has support for Invoices service |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hasRouterSupport -> hasInvoicesSupport
return ( | ||
<Box> | ||
<Flex alignItems="center" justifyContent="space-between"> | ||
<Flex> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any reason to have "double" <Flex>
here?
Description:
Motivation and Context:
Support more LN features
How Has This Been Tested?
Manually
Screenshots:
Types of changes:
Feature
Checklist: