You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
706 B
25 lines
706 B
4 years ago
|
import { connect } from 'react-redux';
|
||
7 years ago
|
|
||
4 years ago
|
import { addTokens, clearPendingTokens } from '../../store/actions';
|
||
|
import { getMostRecentOverviewPage } from '../../ducks/history/history';
|
||
3 years ago
|
import ConfirmImportToken from './confirm-import-token.component';
|
||
7 years ago
|
|
||
5 years ago
|
const mapStateToProps = (state) => {
|
||
4 years ago
|
const {
|
||
|
metamask: { pendingTokens },
|
||
4 years ago
|
} = state;
|
||
7 years ago
|
return {
|
||
5 years ago
|
mostRecentOverviewPage: getMostRecentOverviewPage(state),
|
||
7 years ago
|
pendingTokens,
|
||
4 years ago
|
};
|
||
|
};
|
||
7 years ago
|
|
||
5 years ago
|
const mapDispatchToProps = (dispatch) => {
|
||
7 years ago
|
return {
|
||
5 years ago
|
addTokens: (tokens) => dispatch(addTokens(tokens)),
|
||
7 years ago
|
clearPendingTokens: () => dispatch(clearPendingTokens()),
|
||
4 years ago
|
};
|
||
|
};
|
||
7 years ago
|
|
||
3 years ago
|
export default connect(mapStateToProps, mapDispatchToProps)(ConfirmImportToken);
|