Skip to content

Commit

Permalink
[WALL] [Fix] Rostislav / WALL-3134 & 3136 / Pending transactions UI i…
Browse files Browse the repository at this point in the history
…ssues (#12460)

* fix: the thing

* fix: correction + other bug

* fix: more of wall-3136

* fix: don't center confirmations on desktop
  • Loading branch information
rostislav-deriv committed Dec 22, 2023
1 parent 42f6dc7 commit 23c23d2
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 9 deletions.
2 changes: 1 addition & 1 deletion packages/api/src/hooks/useCryptoTransactions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ const useCryptoTransactions = () => {
/** Formatted transaction hash */
formatted_transaction_hash: transaction.transaction_hash
? getTruncatedString(transaction.transaction_hash, { type: 'middle' })
: 'NA',
: 'Pending',
/** Formatted address hash */
formatted_address_hash: transaction.address_hash
? getTruncatedString(transaction.address_hash, { type: 'middle' })
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
.wallets-transactions {
width: 100%;
height: fit-content;
min-height: 100%;
display: flex;
flex-direction: column;
align-items: center;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,14 @@ const Transactions = () => {
{isPendingActive && (
<TransactionsPending filter={filtersMapper.pending[filterValue] as TTransactionsPendingFilter} />
)}
{wallet?.is_virtual && filterValue === 'deposit' ? (
<TransactionsCompletedDemoResetBalance />
) : (
<TransactionsCompleted filter={filtersMapper.completed[filterValue] as TTransactionCompletedFilter} />
)}
{!isPendingActive &&
(wallet?.is_virtual && filterValue === 'deposit' ? (
<TransactionsCompletedDemoResetBalance />
) : (
<TransactionsCompleted
filter={filtersMapper.completed[filterValue] as TTransactionCompletedFilter}
/>
))}
</div>
);
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
position: relative;
width: 100%;
max-width: 80rem;
display: flex;
flex-grow: 1;

&__group-title {
margin: 0 0 0.8rem 1.6rem;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,6 @@ const TransactionsCryptoRow: React.FC<TProps> = ({ transaction }) => {
className={{ 'wallets-transactions-pending-row__transaction-confirmations': !isMobile }}
name='Confirmations'
value={transaction.formatted_confirmations.toString()}
valueTextProps={{
align: isMobile ? 'start' : 'center',
}}
/>
{isMobile && (
<React.Fragment>
Expand Down

1 comment on commit 23c23d2

@vercel
Copy link

@vercel vercel bot commented on 23c23d2 Dec 22, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

deriv-app – ./

deriv-app.vercel.app
binary.sx
deriv-app-git-master.binary.sx
deriv-app.binary.sx

Please sign in to comment.