Skip to content

Commit

Permalink
feat: Redesign Approve confirmation
Browse files Browse the repository at this point in the history
  • Loading branch information
pedronfigueiredo committed Aug 16, 2024
1 parent ea70ebc commit a78699e
Showing 1 changed file with 19 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,25 +16,6 @@ import {
RecipientRow,
} from '../transaction-details/transaction-details';

export const ApproveDetails = () => {
const showAdvancedDetails = useSelector(
selectConfirmationAdvancedDetailsOpen,
);

return (
<ConfirmInfoSection>
<Spender />
<OriginRow />
{showAdvancedDetails && (
<>
<RecipientRow />
<MethodDataRow />
</>
)}
</ConfirmInfoSection>
);
};

const Spender = () => {
const t = useI18nContext();

Expand All @@ -60,3 +41,22 @@ const Spender = () => {
</>
);
};

export const ApproveDetails = () => {
const showAdvancedDetails = useSelector(
selectConfirmationAdvancedDetailsOpen,
);

return (
<ConfirmInfoSection>
<Spender />
<OriginRow />
{showAdvancedDetails && (
<>
<RecipientRow />
<MethodDataRow />
</>
)}
</ConfirmInfoSection>
);
};

0 comments on commit a78699e

Please sign in to comment.