-
Notifications
You must be signed in to change notification settings - Fork 5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Delete legacy transaction confirmation code
- Loading branch information
1 parent
9212d87
commit 8c28873
Showing
4 changed files
with
3 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 1 addition & 15 deletions
16
ui/pages/confirmations/confirm-transaction/confirm-token-transaction-switch.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, | ||
}), | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |