Skip to content

Commit

Permalink
feat: Delete legacy transaction confirmation code
Browse files Browse the repository at this point in the history
  • Loading branch information
pedronfigueiredo committed Jan 27, 2025
1 parent 9212d87 commit 8c28873
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 42 deletions.
1 change: 0 additions & 1 deletion ui/pages/confirmations/components/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
@import 'advanced-gas-fee-popover/advanced-gas-fee-inputs/base-fee-input/index';
@import 'advanced-gas-fee-popover/advanced-gas-fee-inputs/priority-fee-input/index';
@import 'advanced-gas-fee-popover/advanced-gas-fee-input-subtext/index';
@import 'approve-content-card/index';
@import 'confirmation-warning-modal/index';
@import 'confirm-page-container/index';
@import 'confirm/footer';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,25 +1,11 @@
import React from 'react';
import PropTypes from 'prop-types';
import { Switch, Route } from 'react-router-dom';
import ConfirmTransactionSwitch from '../confirm-transaction-switch';

export default function ConfirmTokenTransactionSwitch({ transaction }) {
export default function ConfirmTokenTransactionSwitch() {
return (
<Switch>
<Route path="*" component={ConfirmTransactionSwitch} />
</Switch>
);
}

ConfirmTokenTransactionSwitch.propTypes = {
transaction: PropTypes.shape({
chainId: PropTypes.string,
origin: PropTypes.string,
txParams: PropTypes.shape({
data: PropTypes.string,
to: PropTypes.string,
from: PropTypes.string,
}),
layer1GasFee: PropTypes.number,
}),
};
Original file line number Diff line number Diff line change
Expand Up @@ -64,14 +64,6 @@ jest.mock('react-router-dom', () => {
};
});

jest.mock('../confirm-contract-interaction', () => {
return {
__esModule: true,
default: () => {
return <div className="mock-confirm-contract-interaction" />;
},
};
});
jest.mock('../../confirm-decrypt-message', () => {
return {
__esModule: true,
Expand All @@ -80,14 +72,7 @@ jest.mock('../../confirm-decrypt-message', () => {
},
};
});
jest.mock('../confirm-deploy-contract', () => {
return {
__esModule: true,
default: () => {
return <div className="mock-confirm-deploy-contract" />;
},
};
});

jest.mock('../../confirm-encryption-public-key', () => {
return {
__esModule: true,
Expand All @@ -96,14 +81,7 @@ jest.mock('../../confirm-encryption-public-key', () => {
},
};
});
jest.mock('../confirm-send-ether', () => {
return {
__esModule: true,
default: () => {
return <div className="mock-confirm-send-ether" />;
},
};
});

jest.mock('../confirm-signature-request', () => {
return {
__esModule: true,
Expand Down
2 changes: 0 additions & 2 deletions ui/pages/confirmations/index.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
/** Please import your files in alphabetical order **/
@import 'confirm-approve/index';
@import 'confirm/index';
@import 'confirmation/confirmation';
@import 'send/send';
@import 'token-allowance/index';
@import './components/index'

0 comments on commit 8c28873

Please sign in to comment.