fix lbry-redux imports and lint fixes
This commit is contained in:
parent
d27308688b
commit
c097c15312
6 changed files with 280 additions and 300 deletions
|
@ -1,6 +1,6 @@
|
|||
import { connect } from 'react-redux';
|
||||
import { doOpenModal } from 'redux/actions/app';
|
||||
import {
|
||||
doOpenModal,
|
||||
makeSelectCostInfoForUri,
|
||||
makeSelectFileInfoForUri,
|
||||
makeSelectClaimIsMine,
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
import { connect } from 'react-redux';
|
||||
import { selectClaimedRewardsByTransactionId } from 'redux/selectors/rewards';
|
||||
import { doNavigate } from 'redux/actions/navigation';
|
||||
import { doOpenModal, selectAllMyClaimsByOutpoint } from 'lbry-redux';
|
||||
import { doOpenModal } from 'redux/actions/app';
|
||||
import { selectAllMyClaimsByOutpoint } from 'lbry-redux';
|
||||
import TransactionList from './view';
|
||||
|
||||
const select = state => ({
|
||||
|
|
|
@ -1,18 +1,14 @@
|
|||
import { connect } from 'react-redux';
|
||||
import * as settings from 'constants/settings';
|
||||
import { selectCurrentModal, selectModalProps, selectModalsAllowed } from 'redux/selectors/app';
|
||||
import {
|
||||
doOpenModal,
|
||||
selectCostForCurrentPageUri,
|
||||
selectBalance,
|
||||
selectCurrentPage,
|
||||
} from 'lbry-redux';
|
||||
import { doOpenModal } from 'redux/actions/app';
|
||||
import { selectCostForCurrentPageUri, selectBalance, selectCurrentPage } from 'lbry-redux';
|
||||
import { makeSelectClientSetting } from 'redux/selectors/settings';
|
||||
import { selectUser, selectUserIsVerificationCandidate } from 'redux/selectors/user';
|
||||
|
||||
import ModalRouter from './view';
|
||||
|
||||
const select = (state, props) => ({
|
||||
const select = state => ({
|
||||
balance: selectBalance(state),
|
||||
showPageCost: selectCostForCurrentPageUri(state),
|
||||
modal: selectCurrentModal(state),
|
||||
|
|
|
@ -2,7 +2,7 @@ import * as MODALS from 'constants/modal_types';
|
|||
import * as NOTIFICATION_TYPES from 'constants/notification_types';
|
||||
import { ipcRenderer } from 'electron';
|
||||
import Lbryio from 'lbryio';
|
||||
import { doAlertError } from 'redux/actions/app';
|
||||
import { doAlertError, doOpenModal } from 'redux/actions/app';
|
||||
import { doClaimEligiblePurchaseRewards } from 'redux/actions/rewards';
|
||||
import { doNavigate } from 'redux/actions/navigation';
|
||||
import {
|
||||
|
@ -21,7 +21,6 @@ import {
|
|||
batchActions,
|
||||
doResolveUris,
|
||||
doFetchClaimListMine,
|
||||
doOpenModal,
|
||||
makeSelectCostInfoForUri,
|
||||
makeSelectFileInfoForUri,
|
||||
selectDownloadingByOutpoint,
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import * as ACTIONS from 'constants/action_types';
|
||||
import * as MODALS from 'constants/modal_types';
|
||||
import Lbryio from 'lbryio';
|
||||
import { doOpenModal, doShowSnackBar } from 'lbry-redux';
|
||||
import { doOpenModal, doShowSnackBar } from 'redux/actions/app';
|
||||
import { doClaimRewardType, doRewardList } from 'redux/actions/rewards';
|
||||
import {
|
||||
selectEmailToVerify,
|
||||
|
@ -91,11 +91,11 @@ export function doUserPhoneReset() {
|
|||
};
|
||||
}
|
||||
|
||||
export function doUserPhoneNew(phone, country_code) {
|
||||
export function doUserPhoneNew(phone, countryCode) {
|
||||
return dispatch => {
|
||||
dispatch({
|
||||
type: ACTIONS.USER_PHONE_NEW_STARTED,
|
||||
data: { phone, country_code },
|
||||
data: { phone, country_code: countryCode },
|
||||
});
|
||||
|
||||
const success = () => {
|
||||
|
@ -112,10 +112,12 @@ export function doUserPhoneNew(phone, country_code) {
|
|||
});
|
||||
};
|
||||
|
||||
Lbryio.call('user', 'phone_number_new', { phone_number: phone, country_code }, 'post').then(
|
||||
success,
|
||||
failure
|
||||
);
|
||||
Lbryio.call(
|
||||
'user',
|
||||
'phone_number_new',
|
||||
{ phone_number: phone, country_code: countryCode },
|
||||
'post'
|
||||
).then(success, failure);
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue