Skip to content

Commit

Permalink
feat: transaction representation refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
VanessaPC committed Mar 26, 2024
1 parent d05f524 commit 6139c0d
Show file tree
Hide file tree
Showing 66 changed files with 1,682 additions and 806 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 6139c0d

Please sign in to comment.