Skip to content

Commit

Permalink
fix: two transactions alert - buttons in a column
Browse files Browse the repository at this point in the history
  • Loading branch information
juanky201271 committed Nov 16, 2024
1 parent 78560f9 commit 66f3b58
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 26 deletions.
28 changes: 15 additions & 13 deletions src/components/send/components/ConfirmModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -230,22 +230,24 @@ type ConfirmModalProps = {
<div>{`TXID: ${txids[2]}`}</div>
)}
</div>
<div className={cstyles.primarybutton} onClick={() => Utils.openTxid(txids[0], info.currencyName)}>
View TXID &nbsp;
<i className={["fas", "fa-external-link-square-alt"].join(" ")} />
</div>
{txids.length > 1 && (
<div className={cstyles.primarybutton} onClick={() => Utils.openTxid(txids[1], info.currencyName)}>
<div style={{ display: 'flex', flexDirection: 'column', justifyContent: 'center', alignItems: 'center' }}>
<div className={cstyles.primarybutton} onClick={() => Utils.openTxid(txids[0], info.currencyName)}>
View TXID &nbsp;
<i className={["fas", "fa-external-link-square-alt"].join(" ")} />
</div>
)}
{txids.length > 2 && (
<div className={cstyles.primarybutton} onClick={() => Utils.openTxid(txids[2], info.currencyName)}>
View TXID &nbsp;
<i className={["fas", "fa-external-link-square-alt"].join(" ")} />
</div>
)}
{txids.length > 1 && (
<div className={cstyles.primarybutton} onClick={() => Utils.openTxid(txids[1], info.currencyName)}>
View TXID &nbsp;
<i className={["fas", "fa-external-link-square-alt"].join(" ")} />
</div>
)}
{txids.length > 2 && (
<div className={cstyles.primarybutton} onClick={() => Utils.openTxid(txids[2], info.currencyName)}>
View TXID &nbsp;
<i className={["fas", "fa-external-link-square-alt"].join(" ")} />
</div>
)}
</div>
</div>
);
}
Expand Down
28 changes: 15 additions & 13 deletions src/root/Routes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -547,22 +547,24 @@ class Routes extends React.Component<Props & RouteComponentProps, AppState> {
<div>{`TXID: ${resultJSON.txids[2]}`}</div>
)}
</div>
<div className={cstyles.primarybutton} onClick={() => Utils.openTxid(resultJSON.txids[0], this.state.info.currencyName)}>
View TXID &nbsp;
<i className={["fas", "fa-external-link-square-alt"].join(" ")} />
</div>
{resultJSON.txids.length > 1 && (
<div className={cstyles.primarybutton} onClick={() => Utils.openTxid(resultJSON.txids[1], this.state.info.currencyName)}>
View TXID &nbsp;
<i className={["fas", "fa-external-link-square-alt"].join(" ")} />
</div>
)}
{resultJSON.txids.length > 2 && (
<div className={cstyles.primarybutton} onClick={() => Utils.openTxid(resultJSON.txids[2], this.state.info.currencyName)}>
<div style={{ display: 'flex', flexDirection: 'column', justifyContent: 'center', alignItems: 'center' }}>
<div className={cstyles.primarybutton} onClick={() => Utils.openTxid(resultJSON.txids[0], this.state.info.currencyName)}>
View TXID &nbsp;
<i className={["fas", "fa-external-link-square-alt"].join(" ")} />
</div>
)}
{resultJSON.txids.length > 1 && (
<div className={cstyles.primarybutton} onClick={() => Utils.openTxid(resultJSON.txids[1], this.state.info.currencyName)}>
View TXID &nbsp;
<i className={["fas", "fa-external-link-square-alt"].join(" ")} />
</div>
)}
{resultJSON.txids.length > 2 && (
<div className={cstyles.primarybutton} onClick={() => Utils.openTxid(resultJSON.txids[2], this.state.info.currencyName)}>
View TXID &nbsp;
<i className={["fas", "fa-external-link-square-alt"].join(" ")} />
</div>
)}
</div>
</div>
);
}
Expand Down

0 comments on commit 66f3b58

Please sign in to comment.