Skip to content

Commit

Permalink
feat: transaction representation refactor
Browse files Browse the repository at this point in the history
- transaction includes transaction fees
- it displays returned deposit and deposits
- it shows from address sections wiht tokens and nfts
- it shows to address section with tokens and nfts
- it displays tokens and nfts in the summary
- it summarises the balance in coins of a transactions
- it displays the dapp name in the origin tab
  • Loading branch information
VanessaPC committed Mar 27, 2024
1 parent 66850b3 commit 9319be6
Show file tree
Hide file tree
Showing 68 changed files with 1,692 additions and 818 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
display: flex;
min-height: 0;
width: 100%;
flex-direction: column;
> * {
width: 100%;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import React from 'react';
import styles from './Layout.module.scss';

type layoutProps = {
title: string | React.ReactElement;
title?: string | React.ReactElement;
children?: React.ReactElement | React.ReactNode;
layoutClassname?: string;
pageClassname?: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,26 @@

.spaceBetween {
justify-content: space-between;
padding-top: size_unit(2);
padding-top: size_unit(0);
}

.layoutError {
padding: 0;
.transactionContainer {
display: flex;
flex-direction: column;
flex: 1;
justify-content: space-between;
}

.actions {
@extend %flex-column;
background-color: var(--bg-color-body);
gap: size_unit(1);
height: size_unit(17.12);
justify-content: space-between;
padding: size_unit(2) size_unit(3) size_unit(2) size_unit(3);
border-top: 2px solid var(--light-mode-light-grey-plus, var(--dark-mode-mid-grey));
margin: size_unit(4) size_unit(-3) size_unit(-2) size_unit(-3);
border-top: 1px solid var(--light-mode-light-grey-plus, var(--dark-mode-mid-grey));
position: sticky;
bottom: 0;
z-index: 10;
background-color: var(--light-mode-body, var(--dark-mode-bg-black));
.actionBtn {
width: 100%;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,7 @@ export const ConfirmTransaction = (): React.ReactElement => {
useOnBeforeUnload(disallowSignTx);

return (
<Layout
layoutClassname={cn(confirmTransactionError && styles.layoutError)}
pageClassname={styles.spaceBetween}
title={!confirmTransactionError && txType && t(`core.${txType}.title`)}
>
<Layout layoutClassname={cn(confirmTransactionError && styles.layoutError)} pageClassname={styles.spaceBetween}>
{req && txType ? (
<ConfirmTransactionContent txType={txType} onError={() => setConfirmTransactionError(true)} />
) : (
Expand Down
Loading

0 comments on commit 9319be6

Please sign in to comment.