mirror of
https://github.com/LBRYFoundation/lbry-desktop.git
synced 2025-08-30 17:01:25 +00:00
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 { connect } from 'react-redux';
|
||||||
|
import { doOpenModal } from 'redux/actions/app';
|
||||||
import {
|
import {
|
||||||
doOpenModal,
|
|
||||||
makeSelectCostInfoForUri,
|
makeSelectCostInfoForUri,
|
||||||
makeSelectFileInfoForUri,
|
makeSelectFileInfoForUri,
|
||||||
makeSelectClaimIsMine,
|
makeSelectClaimIsMine,
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
import { connect } from 'react-redux';
|
import { connect } from 'react-redux';
|
||||||
import { selectClaimedRewardsByTransactionId } from 'redux/selectors/rewards';
|
import { selectClaimedRewardsByTransactionId } from 'redux/selectors/rewards';
|
||||||
import { doNavigate } from 'redux/actions/navigation';
|
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';
|
import TransactionList from './view';
|
||||||
|
|
||||||
const select = state => ({
|
const select = state => ({
|
||||||
|
|
|
@ -1,18 +1,14 @@
|
||||||
import { connect } from 'react-redux';
|
import { connect } from 'react-redux';
|
||||||
import * as settings from 'constants/settings';
|
import * as settings from 'constants/settings';
|
||||||
import { selectCurrentModal, selectModalProps, selectModalsAllowed } from 'redux/selectors/app';
|
import { selectCurrentModal, selectModalProps, selectModalsAllowed } from 'redux/selectors/app';
|
||||||
import {
|
import { doOpenModal } from 'redux/actions/app';
|
||||||
doOpenModal,
|
import { selectCostForCurrentPageUri, selectBalance, selectCurrentPage } from 'lbry-redux';
|
||||||
selectCostForCurrentPageUri,
|
|
||||||
selectBalance,
|
|
||||||
selectCurrentPage,
|
|
||||||
} from 'lbry-redux';
|
|
||||||
import { makeSelectClientSetting } from 'redux/selectors/settings';
|
import { makeSelectClientSetting } from 'redux/selectors/settings';
|
||||||
import { selectUser, selectUserIsVerificationCandidate } from 'redux/selectors/user';
|
import { selectUser, selectUserIsVerificationCandidate } from 'redux/selectors/user';
|
||||||
|
|
||||||
import ModalRouter from './view';
|
import ModalRouter from './view';
|
||||||
|
|
||||||
const select = (state, props) => ({
|
const select = state => ({
|
||||||
balance: selectBalance(state),
|
balance: selectBalance(state),
|
||||||
showPageCost: selectCostForCurrentPageUri(state),
|
showPageCost: selectCostForCurrentPageUri(state),
|
||||||
modal: selectCurrentModal(state),
|
modal: selectCurrentModal(state),
|
||||||
|
|
|
@ -2,7 +2,7 @@ import * as MODALS from 'constants/modal_types';
|
||||||
import * as NOTIFICATION_TYPES from 'constants/notification_types';
|
import * as NOTIFICATION_TYPES from 'constants/notification_types';
|
||||||
import { ipcRenderer } from 'electron';
|
import { ipcRenderer } from 'electron';
|
||||||
import Lbryio from 'lbryio';
|
import Lbryio from 'lbryio';
|
||||||
import { doAlertError } from 'redux/actions/app';
|
import { doAlertError, doOpenModal } from 'redux/actions/app';
|
||||||
import { doClaimEligiblePurchaseRewards } from 'redux/actions/rewards';
|
import { doClaimEligiblePurchaseRewards } from 'redux/actions/rewards';
|
||||||
import { doNavigate } from 'redux/actions/navigation';
|
import { doNavigate } from 'redux/actions/navigation';
|
||||||
import {
|
import {
|
||||||
|
@ -21,7 +21,6 @@ import {
|
||||||
batchActions,
|
batchActions,
|
||||||
doResolveUris,
|
doResolveUris,
|
||||||
doFetchClaimListMine,
|
doFetchClaimListMine,
|
||||||
doOpenModal,
|
|
||||||
makeSelectCostInfoForUri,
|
makeSelectCostInfoForUri,
|
||||||
makeSelectFileInfoForUri,
|
makeSelectFileInfoForUri,
|
||||||
selectDownloadingByOutpoint,
|
selectDownloadingByOutpoint,
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import * as ACTIONS from 'constants/action_types';
|
import * as ACTIONS from 'constants/action_types';
|
||||||
import * as MODALS from 'constants/modal_types';
|
import * as MODALS from 'constants/modal_types';
|
||||||
import Lbryio from 'lbryio';
|
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 { doClaimRewardType, doRewardList } from 'redux/actions/rewards';
|
||||||
import {
|
import {
|
||||||
selectEmailToVerify,
|
selectEmailToVerify,
|
||||||
|
@ -91,11 +91,11 @@ export function doUserPhoneReset() {
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function doUserPhoneNew(phone, country_code) {
|
export function doUserPhoneNew(phone, countryCode) {
|
||||||
return dispatch => {
|
return dispatch => {
|
||||||
dispatch({
|
dispatch({
|
||||||
type: ACTIONS.USER_PHONE_NEW_STARTED,
|
type: ACTIONS.USER_PHONE_NEW_STARTED,
|
||||||
data: { phone, country_code },
|
data: { phone, country_code: countryCode },
|
||||||
});
|
});
|
||||||
|
|
||||||
const success = () => {
|
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(
|
Lbryio.call(
|
||||||
success,
|
'user',
|
||||||
failure
|
'phone_number_new',
|
||||||
);
|
{ phone_number: phone, country_code: countryCode },
|
||||||
|
'post'
|
||||||
|
).then(success, failure);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue