on master help sign in
fix: stop button from disappearing by adding a button state for waiting on funding
16b9a65Matt Condon (shrugs)
src/views/Invite/InviteEmail.js+16
@@ -135,6 +135,7 @@ export default function InviteEmail() {
135 const canInput = status === STATUS.INPUT;
135 const canInput = status === STATUS.INPUT;
136 const isGenerating = status === STATUS.GENERATING;
136 const isGenerating = status === STATUS.GENERATING;
137 const canSend = status === STATUS.CAN_SEND;
137 const canSend = status === STATUS.CAN_SEND;
138+ const isFunding = status === STATUS.FUNDING;
138 const isSending = status === STATUS.SENDING;
139 const isSending = status === STATUS.SENDING;
139 const isFailed = status === STATUS.FAILURE;
140 const isFailed = status === STATUS.FAILURE;
140 const isDone = status === STATUS.SUCCESS;
141 const isDone = status === STATUS.SUCCESS;
@@ -473,6 +474,21 @@ export default function InviteEmail() {
473 );
474 );
474 }
475 }
475
476
477+ if (isFunding) {
478+ return (
479+ <Grid.Item
480+ full
481+ as={ForwardButton}
482+ className="mt4"
483+ solid
484+ success
485+ disabled
486+ accessory={`${visualProgress}/${fields.length}`}>
487+ {buttonText(status, fields.length)}
488+ </Grid.Item>
489+ );
490+ }
491+
476 if (isSending) {
492 if (isSending) {
477 return (
493 return (
478 <Grid.Item
494 <Grid.Item