Common components refactor #1
742
build/index.js
12
src/index.js
|
@ -1,7 +1,11 @@
|
||||||
|
// constants
|
||||||
|
import * as ACTIONS from 'constants/action_types';
|
||||||
|
|
||||||
// common
|
// common
|
||||||
import Lbry from 'lbry';
|
import Lbry from 'lbry';
|
||||||
import Lbryapi from 'lbryapi';
|
import Lbryapi from 'lbryapi';
|
||||||
|
|
||||||
|
export { ACTIONS };
|
||||||
export { Lbry, Lbryapi };
|
export { Lbry, Lbryapi };
|
||||||
export {
|
export {
|
||||||
regexInvalidURI,
|
regexInvalidURI,
|
||||||
|
@ -27,14 +31,6 @@ export {
|
||||||
doFileList,
|
doFileList,
|
||||||
doFetchFileInfosAndPublishedClaims,
|
doFetchFileInfosAndPublishedClaims,
|
||||||
} from 'redux/actions/file_info';
|
} from 'redux/actions/file_info';
|
||||||
export {
|
|
||||||
doNavigate,
|
|
||||||
doAuthNavigate,
|
|
||||||
doHistoryTraverse,
|
|
||||||
doHistoryBack,
|
|
||||||
doHistoryForward,
|
|
||||||
doRecordScroll,
|
|
||||||
} from 'redux/actions/navigation';
|
|
||||||
export { doSearch } from 'redux/actions/search';
|
export { doSearch } from 'redux/actions/search';
|
||||||
export {
|
export {
|
||||||
doUpdateBalance,
|
doUpdateBalance,
|
||||||
|
|
|
@ -1,64 +0,0 @@
|
||||||
![]() Should these actions be in Should these actions be in `lbry-redux`? I'm inclined to say no.
|
|||||||
import * as ACTIONS from 'constants/action_types';
|
|
||||||
![]() Should these actions be in Should these actions be in `lbry-redux`? I'm inclined to say no.
|
|||||||
import { selectHistoryIndex, selectHistoryStack } from 'redux/selectors/navigation';
|
|
||||||
![]() Should these actions be in Should these actions be in `lbry-redux`? I'm inclined to say no.
|
|||||||
import { toQueryString } from 'util/query_params';
|
|
||||||
![]() Should these actions be in Should these actions be in `lbry-redux`? I'm inclined to say no.
|
|||||||
|
|
||||||
![]() Should these actions be in Should these actions be in `lbry-redux`? I'm inclined to say no.
|
|||||||
export function doNavigate(path, params = {}, options = {}) {
|
|
||||||
![]() Should these actions be in Should these actions be in `lbry-redux`? I'm inclined to say no.
|
|||||||
return dispatch => {
|
|
||||||
![]() Should these actions be in Should these actions be in `lbry-redux`? I'm inclined to say no.
|
|||||||
if (!path) {
|
|
||||||
![]() Should these actions be in Should these actions be in `lbry-redux`? I'm inclined to say no.
|
|||||||
return;
|
|
||||||
![]() Should these actions be in Should these actions be in `lbry-redux`? I'm inclined to say no.
|
|||||||
}
|
|
||||||
![]() Should these actions be in Should these actions be in `lbry-redux`? I'm inclined to say no.
|
|||||||
|
|
||||||
![]() Should these actions be in Should these actions be in `lbry-redux`? I'm inclined to say no.
|
|||||||
let url = path;
|
|
||||||
![]() Should these actions be in Should these actions be in `lbry-redux`? I'm inclined to say no.
|
|||||||
if (params && Object.values(params).length) {
|
|
||||||
![]() Should these actions be in Should these actions be in `lbry-redux`? I'm inclined to say no.
|
|||||||
url += `?${toQueryString(params)}`;
|
|
||||||
![]() Should these actions be in Should these actions be in `lbry-redux`? I'm inclined to say no.
|
|||||||
}
|
|
||||||
![]() Should these actions be in Should these actions be in `lbry-redux`? I'm inclined to say no.
|
|||||||
|
|
||||||
![]() Should these actions be in Should these actions be in `lbry-redux`? I'm inclined to say no.
|
|||||||
const { scrollY } = options;
|
|
||||||
![]() Should these actions be in Should these actions be in `lbry-redux`? I'm inclined to say no.
|
|||||||
|
|
||||||
![]() Should these actions be in Should these actions be in `lbry-redux`? I'm inclined to say no.
|
|||||||
dispatch({
|
|
||||||
![]() Should these actions be in Should these actions be in `lbry-redux`? I'm inclined to say no.
|
|||||||
type: ACTIONS.HISTORY_NAVIGATE,
|
|
||||||
![]() Should these actions be in Should these actions be in `lbry-redux`? I'm inclined to say no.
|
|||||||
data: { url, index: options.index, scrollY },
|
|
||||||
![]() Should these actions be in Should these actions be in `lbry-redux`? I'm inclined to say no.
|
|||||||
});
|
|
||||||
![]() Should these actions be in Should these actions be in `lbry-redux`? I'm inclined to say no.
|
|||||||
};
|
|
||||||
![]() Should these actions be in Should these actions be in `lbry-redux`? I'm inclined to say no.
|
|||||||
}
|
|
||||||
![]() Should these actions be in Should these actions be in `lbry-redux`? I'm inclined to say no.
|
|||||||
|
|
||||||
![]() Should these actions be in Should these actions be in `lbry-redux`? I'm inclined to say no.
|
|||||||
export function doAuthNavigate(pathAfterAuth = null, params = {}) {
|
|
||||||
![]() Should these actions be in Should these actions be in `lbry-redux`? I'm inclined to say no.
|
|||||||
return dispatch => {
|
|
||||||
![]() Should these actions be in Should these actions be in `lbry-redux`? I'm inclined to say no.
|
|||||||
if (pathAfterAuth) {
|
|
||||||
![]() Should these actions be in Should these actions be in `lbry-redux`? I'm inclined to say no.
|
|||||||
dispatch({
|
|
||||||
![]() Should these actions be in Should these actions be in `lbry-redux`? I'm inclined to say no.
|
|||||||
type: ACTIONS.CHANGE_AFTER_AUTH_PATH,
|
|
||||||
![]() Should these actions be in Should these actions be in `lbry-redux`? I'm inclined to say no.
|
|||||||
data: {
|
|
||||||
![]() Should these actions be in Should these actions be in `lbry-redux`? I'm inclined to say no.
|
|||||||
path: `${pathAfterAuth}?${toQueryString(params)}`,
|
|
||||||
![]() Should these actions be in Should these actions be in `lbry-redux`? I'm inclined to say no.
|
|||||||
},
|
|
||||||
![]() Should these actions be in Should these actions be in `lbry-redux`? I'm inclined to say no.
|
|||||||
});
|
|
||||||
![]() Should these actions be in Should these actions be in `lbry-redux`? I'm inclined to say no.
|
|||||||
}
|
|
||||||
![]() Should these actions be in Should these actions be in `lbry-redux`? I'm inclined to say no.
|
|||||||
dispatch(doNavigate('/auth'));
|
|
||||||
![]() Should these actions be in Should these actions be in `lbry-redux`? I'm inclined to say no.
|
|||||||
};
|
|
||||||
![]() Should these actions be in Should these actions be in `lbry-redux`? I'm inclined to say no.
|
|||||||
}
|
|
||||||
![]() Should these actions be in Should these actions be in `lbry-redux`? I'm inclined to say no.
|
|||||||
|
|
||||||
![]() Should these actions be in Should these actions be in `lbry-redux`? I'm inclined to say no.
|
|||||||
export function doHistoryTraverse(dispatch, state, modifier) {
|
|
||||||
![]() Should these actions be in Should these actions be in `lbry-redux`? I'm inclined to say no.
|
|||||||
const stack = selectHistoryStack(state);
|
|
||||||
![]() Should these actions be in Should these actions be in `lbry-redux`? I'm inclined to say no.
|
|||||||
const index = selectHistoryIndex(state) + modifier;
|
|
||||||
![]() Should these actions be in Should these actions be in `lbry-redux`? I'm inclined to say no.
|
|||||||
|
|
||||||
![]() Should these actions be in Should these actions be in `lbry-redux`? I'm inclined to say no.
|
|||||||
if (index >= 0 && index < stack.length) {
|
|
||||||
![]() Should these actions be in Should these actions be in `lbry-redux`? I'm inclined to say no.
|
|||||||
const historyItem = stack[index];
|
|
||||||
![]() Should these actions be in Should these actions be in `lbry-redux`? I'm inclined to say no.
|
|||||||
dispatch(doNavigate(historyItem.path, {}, { scrollY: historyItem.scrollY, index }));
|
|
||||||
![]() Should these actions be in Should these actions be in `lbry-redux`? I'm inclined to say no.
|
|||||||
}
|
|
||||||
![]() Should these actions be in Should these actions be in `lbry-redux`? I'm inclined to say no.
|
|||||||
}
|
|
||||||
![]() Should these actions be in Should these actions be in `lbry-redux`? I'm inclined to say no.
|
|||||||
|
|
||||||
![]() Should these actions be in Should these actions be in `lbry-redux`? I'm inclined to say no.
|
|||||||
export function doHistoryBack() {
|
|
||||||
![]() Should these actions be in Should these actions be in `lbry-redux`? I'm inclined to say no.
|
|||||||
return (dispatch, getState) => doHistoryTraverse(dispatch, getState(), -1);
|
|
||||||
![]() Should these actions be in Should these actions be in `lbry-redux`? I'm inclined to say no.
|
|||||||
}
|
|
||||||
![]() Should these actions be in Should these actions be in `lbry-redux`? I'm inclined to say no.
|
|||||||
|
|
||||||
![]() Should these actions be in Should these actions be in `lbry-redux`? I'm inclined to say no.
|
|||||||
export function doHistoryForward() {
|
|
||||||
![]() Should these actions be in Should these actions be in `lbry-redux`? I'm inclined to say no.
|
|||||||
return (dispatch, getState) => doHistoryTraverse(dispatch, getState(), 1);
|
|
||||||
![]() Should these actions be in Should these actions be in `lbry-redux`? I'm inclined to say no.
|
|||||||
}
|
|
||||||
![]() Should these actions be in Should these actions be in `lbry-redux`? I'm inclined to say no.
|
|||||||
|
|
||||||
![]() Should these actions be in Should these actions be in `lbry-redux`? I'm inclined to say no.
|
|||||||
export function doRecordScroll(scroll) {
|
|
||||||
![]() Should these actions be in Should these actions be in `lbry-redux`? I'm inclined to say no.
|
|||||||
return dispatch => {
|
|
||||||
![]() Should these actions be in Should these actions be in `lbry-redux`? I'm inclined to say no.
|
|||||||
dispatch({
|
|
||||||
![]() Should these actions be in Should these actions be in `lbry-redux`? I'm inclined to say no.
|
|||||||
type: ACTIONS.WINDOW_SCROLLED,
|
|
||||||
![]() Should these actions be in Should these actions be in `lbry-redux`? I'm inclined to say no.
|
|||||||
data: { scrollY: scroll },
|
|
||||||
![]() Should these actions be in Should these actions be in `lbry-redux`? I'm inclined to say no.
|
|||||||
});
|
|
||||||
![]() Should these actions be in Should these actions be in `lbry-redux`? I'm inclined to say no.
|
|||||||
};
|
|
||||||
![]() Should these actions be in Should these actions be in `lbry-redux`? I'm inclined to say no.
|
|||||||
}
|
|
||||||
![]() Should these actions be in Should these actions be in `lbry-redux`? I'm inclined to say no.
|
|
@ -1,12 +1,11 @@
|
||||||
import * as ACTIONS from 'constants/action_types';
|
import * as ACTIONS from 'constants/action_types';
|
||||||
import { buildURI } from 'lbryURI';
|
import { buildURI } from 'lbryURI';
|
||||||
import { doResolveUri } from 'redux/actions/claims';
|
import { doResolveUri } from 'redux/actions/claims';
|
||||||
import { doNavigate } from 'redux/actions/navigation';
|
|
||||||
import { selectCurrentPage } from 'redux/selectors/navigation';
|
import { selectCurrentPage } from 'redux/selectors/navigation';
|
||||||
import batchActions from 'util/batchActions';
|
import batchActions from 'util/batchActions';
|
||||||
|
|
||||||
// eslint-disable-next-line import/prefer-default-export
|
// eslint-disable-next-line import/prefer-default-export
|
||||||
export function doSearch(rawQuery) {
|
export function doSearch(rawQuery, currentPageNotSearchHandler) {
|
||||||
return (dispatch, getState) => {
|
return (dispatch, getState) => {
|
||||||
const state = getState();
|
const state = getState();
|
||||||
const page = selectCurrentPage(state);
|
const page = selectCurrentPage(state);
|
||||||
|
@ -26,7 +25,9 @@ export function doSearch(rawQuery) {
|
||||||
});
|
});
|
||||||
|
|
||||||
if (page !== 'search') {
|
if (page !== 'search') {
|
||||||
dispatch(doNavigate('search', { query }));
|
if (currentPageNotSearchHandler) {
|
||||||
|
currentPageNotSearchHandler();
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
fetch(`https://lighthouse.lbry.io/search?s=${query}`)
|
fetch(`https://lighthouse.lbry.io/search?s=${query}`)
|
||||||
.then(
|
.then(
|
||||||
|
|
|
@ -2,7 +2,6 @@ import * as ACTIONS from 'constants/action_types';
|
||||||
![]() https://github.com/lbryio/lbry-app/blob/master/src/renderer/redux/actions/wallet.js#L12
![]()
Yes, we did. I was supposed to delete the You can see the notifications related code in > Did we decide on something like `DO_NOTIFY`?
Yes, we did. I was supposed to delete the `src/redux/actions/app.js` file. It's not used anywhere in `lbry-redux` at this point.
You can see the notifications related code in `src/redux/actions/notification.js`, `src/redux/reducers/notification.js` and `src/redux/selectors/notification.js`. We'll need to update `lbry-app` to make use of the new action, which will be the next step after the merge is completed.
![]() https://github.com/lbryio/lbry-app/blob/master/src/renderer/redux/actions/wallet.js#L12
![]()
Yes, we did. I was supposed to delete the You can see the notifications related code in > Did we decide on something like `DO_NOTIFY`?
Yes, we did. I was supposed to delete the `src/redux/actions/app.js` file. It's not used anywhere in `lbry-redux` at this point.
You can see the notifications related code in `src/redux/actions/notification.js`, `src/redux/reducers/notification.js` and `src/redux/selectors/notification.js`. We'll need to update `lbry-app` to make use of the new action, which will be the next step after the merge is completed.
|
|||||||
import * as MODALS from 'constants/modal_types';
|
import * as MODALS from 'constants/modal_types';
|
||||||
import Lbry from 'lbry';
|
import Lbry from 'lbry';
|
||||||
import { doOpenModal, doShowSnackBar } from 'redux/actions/app';
|
import { doOpenModal, doShowSnackBar } from 'redux/actions/app';
|
||||||
import { doNavigate } from 'redux/actions/navigation';
|
|
||||||
![]() https://github.com/lbryio/lbry-app/blob/master/src/renderer/redux/actions/wallet.js#L12
![]()
Yes, we did. I was supposed to delete the You can see the notifications related code in > Did we decide on something like `DO_NOTIFY`?
Yes, we did. I was supposed to delete the `src/redux/actions/app.js` file. It's not used anywhere in `lbry-redux` at this point.
You can see the notifications related code in `src/redux/actions/notification.js`, `src/redux/reducers/notification.js` and `src/redux/selectors/notification.js`. We'll need to update `lbry-app` to make use of the new action, which will be the next step after the merge is completed.
|
|||||||
import {
|
import {
|
||||||
selectBalance,
|
selectBalance,
|
||||||
selectDraftTransaction,
|
selectDraftTransaction,
|
||||||
|
@ -155,7 +154,7 @@ export function doSetDraftTransactionAddress(address) {
|
||||||
![]() https://github.com/lbryio/lbry-app/blob/master/src/renderer/redux/actions/wallet.js#L12
![]()
Yes, we did. I was supposed to delete the You can see the notifications related code in > Did we decide on something like `DO_NOTIFY`?
Yes, we did. I was supposed to delete the `src/redux/actions/app.js` file. It's not used anywhere in `lbry-redux` at this point.
You can see the notifications related code in `src/redux/actions/notification.js`, `src/redux/reducers/notification.js` and `src/redux/selectors/notification.js`. We'll need to update `lbry-app` to make use of the new action, which will be the next step after the merge is completed.
![]() https://github.com/lbryio/lbry-app/blob/master/src/renderer/redux/actions/wallet.js#L12
![]()
Yes, we did. I was supposed to delete the You can see the notifications related code in > Did we decide on something like `DO_NOTIFY`?
Yes, we did. I was supposed to delete the `src/redux/actions/app.js` file. It's not used anywhere in `lbry-redux` at this point.
You can see the notifications related code in `src/redux/actions/notification.js`, `src/redux/reducers/notification.js` and `src/redux/selectors/notification.js`. We'll need to update `lbry-app` to make use of the new action, which will be the next step after the merge is completed.
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export function doSendSupport(amount, claimId, uri) {
|
export function doSendSupport(amount, claimId, uri, successCallback, errorCallback) {
|
||||||
![]() https://github.com/lbryio/lbry-app/blob/master/src/renderer/redux/actions/wallet.js#L12
![]()
Yes, we did. I was supposed to delete the You can see the notifications related code in > Did we decide on something like `DO_NOTIFY`?
Yes, we did. I was supposed to delete the `src/redux/actions/app.js` file. It's not used anywhere in `lbry-redux` at this point.
You can see the notifications related code in `src/redux/actions/notification.js`, `src/redux/reducers/notification.js` and `src/redux/selectors/notification.js`. We'll need to update `lbry-app` to make use of the new action, which will be the next step after the merge is completed.
![]() https://github.com/lbryio/lbry-app/blob/master/src/renderer/redux/actions/wallet.js#L12
![]()
Yes, we did. I was supposed to delete the You can see the notifications related code in > Did we decide on something like `DO_NOTIFY`?
Yes, we did. I was supposed to delete the `src/redux/actions/app.js` file. It's not used anywhere in `lbry-redux` at this point.
You can see the notifications related code in `src/redux/actions/notification.js`, `src/redux/reducers/notification.js` and `src/redux/selectors/notification.js`. We'll need to update `lbry-app` to make use of the new action, which will be the next step after the merge is completed.
|
|||||||
return (dispatch, getState) => {
|
return (dispatch, getState) => {
|
||||||
const state = getState();
|
const state = getState();
|
||||||
const balance = selectBalance(state);
|
const balance = selectBalance(state);
|
||||||
|
@ -169,36 +168,6 @@ export function doSendSupport(amount, claimId, uri) {
|
||||||
![]() https://github.com/lbryio/lbry-app/blob/master/src/renderer/redux/actions/wallet.js#L12
![]()
Yes, we did. I was supposed to delete the You can see the notifications related code in > Did we decide on something like `DO_NOTIFY`?
Yes, we did. I was supposed to delete the `src/redux/actions/app.js` file. It's not used anywhere in `lbry-redux` at this point.
You can see the notifications related code in `src/redux/actions/notification.js`, `src/redux/reducers/notification.js` and `src/redux/selectors/notification.js`. We'll need to update `lbry-app` to make use of the new action, which will be the next step after the merge is completed.
![]() https://github.com/lbryio/lbry-app/blob/master/src/renderer/redux/actions/wallet.js#L12
![]()
Yes, we did. I was supposed to delete the You can see the notifications related code in > Did we decide on something like `DO_NOTIFY`?
Yes, we did. I was supposed to delete the `src/redux/actions/app.js` file. It's not used anywhere in `lbry-redux` at this point.
You can see the notifications related code in `src/redux/actions/notification.js`, `src/redux/reducers/notification.js` and `src/redux/selectors/notification.js`. We'll need to update `lbry-app` to make use of the new action, which will be the next step after the merge is completed.
|
|||||||
type: ACTIONS.SUPPORT_TRANSACTION_STARTED,
|
type: ACTIONS.SUPPORT_TRANSACTION_STARTED,
|
||||||
});
|
});
|
||||||
|
|
||||||
const successCallback = results => {
|
|
||||||
![]() https://github.com/lbryio/lbry-app/blob/master/src/renderer/redux/actions/wallet.js#L12
![]()
Yes, we did. I was supposed to delete the You can see the notifications related code in > Did we decide on something like `DO_NOTIFY`?
Yes, we did. I was supposed to delete the `src/redux/actions/app.js` file. It's not used anywhere in `lbry-redux` at this point.
You can see the notifications related code in `src/redux/actions/notification.js`, `src/redux/reducers/notification.js` and `src/redux/selectors/notification.js`. We'll need to update `lbry-app` to make use of the new action, which will be the next step after the merge is completed.
|
|||||||
if (results.txid) {
|
|
||||||
![]() https://github.com/lbryio/lbry-app/blob/master/src/renderer/redux/actions/wallet.js#L12
![]()
Yes, we did. I was supposed to delete the You can see the notifications related code in > Did we decide on something like `DO_NOTIFY`?
Yes, we did. I was supposed to delete the `src/redux/actions/app.js` file. It's not used anywhere in `lbry-redux` at this point.
You can see the notifications related code in `src/redux/actions/notification.js`, `src/redux/reducers/notification.js` and `src/redux/selectors/notification.js`. We'll need to update `lbry-app` to make use of the new action, which will be the next step after the merge is completed.
|
|||||||
dispatch({
|
|
||||||
![]() https://github.com/lbryio/lbry-app/blob/master/src/renderer/redux/actions/wallet.js#L12
![]()
Yes, we did. I was supposed to delete the You can see the notifications related code in > Did we decide on something like `DO_NOTIFY`?
Yes, we did. I was supposed to delete the `src/redux/actions/app.js` file. It's not used anywhere in `lbry-redux` at this point.
You can see the notifications related code in `src/redux/actions/notification.js`, `src/redux/reducers/notification.js` and `src/redux/selectors/notification.js`. We'll need to update `lbry-app` to make use of the new action, which will be the next step after the merge is completed.
|
|||||||
type: ACTIONS.SUPPORT_TRANSACTION_COMPLETED,
|
|
||||||
![]() https://github.com/lbryio/lbry-app/blob/master/src/renderer/redux/actions/wallet.js#L12
![]()
Yes, we did. I was supposed to delete the You can see the notifications related code in > Did we decide on something like `DO_NOTIFY`?
Yes, we did. I was supposed to delete the `src/redux/actions/app.js` file. It's not used anywhere in `lbry-redux` at this point.
You can see the notifications related code in `src/redux/actions/notification.js`, `src/redux/reducers/notification.js` and `src/redux/selectors/notification.js`. We'll need to update `lbry-app` to make use of the new action, which will be the next step after the merge is completed.
|
|||||||
});
|
|
||||||
![]() https://github.com/lbryio/lbry-app/blob/master/src/renderer/redux/actions/wallet.js#L12
![]()
Yes, we did. I was supposed to delete the You can see the notifications related code in > Did we decide on something like `DO_NOTIFY`?
Yes, we did. I was supposed to delete the `src/redux/actions/app.js` file. It's not used anywhere in `lbry-redux` at this point.
You can see the notifications related code in `src/redux/actions/notification.js`, `src/redux/reducers/notification.js` and `src/redux/selectors/notification.js`. We'll need to update `lbry-app` to make use of the new action, which will be the next step after the merge is completed.
|
|||||||
dispatch(
|
|
||||||
![]() https://github.com/lbryio/lbry-app/blob/master/src/renderer/redux/actions/wallet.js#L12
![]()
Yes, we did. I was supposed to delete the You can see the notifications related code in > Did we decide on something like `DO_NOTIFY`?
Yes, we did. I was supposed to delete the `src/redux/actions/app.js` file. It's not used anywhere in `lbry-redux` at this point.
You can see the notifications related code in `src/redux/actions/notification.js`, `src/redux/reducers/notification.js` and `src/redux/selectors/notification.js`. We'll need to update `lbry-app` to make use of the new action, which will be the next step after the merge is completed.
|
|||||||
doShowSnackBar({
|
|
||||||
![]() https://github.com/lbryio/lbry-app/blob/master/src/renderer/redux/actions/wallet.js#L12
![]()
Yes, we did. I was supposed to delete the You can see the notifications related code in > Did we decide on something like `DO_NOTIFY`?
Yes, we did. I was supposed to delete the `src/redux/actions/app.js` file. It's not used anywhere in `lbry-redux` at this point.
You can see the notifications related code in `src/redux/actions/notification.js`, `src/redux/reducers/notification.js` and `src/redux/selectors/notification.js`. We'll need to update `lbry-app` to make use of the new action, which will be the next step after the merge is completed.
|
|||||||
message: __(`You sent ${amount} LBC as support, Mahalo!`),
|
|
||||||
![]() https://github.com/lbryio/lbry-app/blob/master/src/renderer/redux/actions/wallet.js#L12
![]()
Yes, we did. I was supposed to delete the You can see the notifications related code in > Did we decide on something like `DO_NOTIFY`?
Yes, we did. I was supposed to delete the `src/redux/actions/app.js` file. It's not used anywhere in `lbry-redux` at this point.
You can see the notifications related code in `src/redux/actions/notification.js`, `src/redux/reducers/notification.js` and `src/redux/selectors/notification.js`. We'll need to update `lbry-app` to make use of the new action, which will be the next step after the merge is completed.
|
|||||||
linkText: __('History'),
|
|
||||||
![]() https://github.com/lbryio/lbry-app/blob/master/src/renderer/redux/actions/wallet.js#L12
![]()
Yes, we did. I was supposed to delete the You can see the notifications related code in > Did we decide on something like `DO_NOTIFY`?
Yes, we did. I was supposed to delete the `src/redux/actions/app.js` file. It's not used anywhere in `lbry-redux` at this point.
You can see the notifications related code in `src/redux/actions/notification.js`, `src/redux/reducers/notification.js` and `src/redux/selectors/notification.js`. We'll need to update `lbry-app` to make use of the new action, which will be the next step after the merge is completed.
|
|||||||
linkTarget: __('/wallet'),
|
|
||||||
![]() https://github.com/lbryio/lbry-app/blob/master/src/renderer/redux/actions/wallet.js#L12
![]()
Yes, we did. I was supposed to delete the You can see the notifications related code in > Did we decide on something like `DO_NOTIFY`?
Yes, we did. I was supposed to delete the `src/redux/actions/app.js` file. It's not used anywhere in `lbry-redux` at this point.
You can see the notifications related code in `src/redux/actions/notification.js`, `src/redux/reducers/notification.js` and `src/redux/selectors/notification.js`. We'll need to update `lbry-app` to make use of the new action, which will be the next step after the merge is completed.
|
|||||||
})
|
|
||||||
![]() https://github.com/lbryio/lbry-app/blob/master/src/renderer/redux/actions/wallet.js#L12
![]()
Yes, we did. I was supposed to delete the You can see the notifications related code in > Did we decide on something like `DO_NOTIFY`?
Yes, we did. I was supposed to delete the `src/redux/actions/app.js` file. It's not used anywhere in `lbry-redux` at this point.
You can see the notifications related code in `src/redux/actions/notification.js`, `src/redux/reducers/notification.js` and `src/redux/selectors/notification.js`. We'll need to update `lbry-app` to make use of the new action, which will be the next step after the merge is completed.
|
|||||||
);
|
|
||||||
![]() https://github.com/lbryio/lbry-app/blob/master/src/renderer/redux/actions/wallet.js#L12
![]()
Yes, we did. I was supposed to delete the You can see the notifications related code in > Did we decide on something like `DO_NOTIFY`?
Yes, we did. I was supposed to delete the `src/redux/actions/app.js` file. It's not used anywhere in `lbry-redux` at this point.
You can see the notifications related code in `src/redux/actions/notification.js`, `src/redux/reducers/notification.js` and `src/redux/selectors/notification.js`. We'll need to update `lbry-app` to make use of the new action, which will be the next step after the merge is completed.
|
|||||||
dispatch(doNavigate('/show', { uri }));
|
|
||||||
![]() https://github.com/lbryio/lbry-app/blob/master/src/renderer/redux/actions/wallet.js#L12
![]()
Yes, we did. I was supposed to delete the You can see the notifications related code in > Did we decide on something like `DO_NOTIFY`?
Yes, we did. I was supposed to delete the `src/redux/actions/app.js` file. It's not used anywhere in `lbry-redux` at this point.
You can see the notifications related code in `src/redux/actions/notification.js`, `src/redux/reducers/notification.js` and `src/redux/selectors/notification.js`. We'll need to update `lbry-app` to make use of the new action, which will be the next step after the merge is completed.
|
|||||||
} else {
|
|
||||||
![]() https://github.com/lbryio/lbry-app/blob/master/src/renderer/redux/actions/wallet.js#L12
![]()
Yes, we did. I was supposed to delete the You can see the notifications related code in > Did we decide on something like `DO_NOTIFY`?
Yes, we did. I was supposed to delete the `src/redux/actions/app.js` file. It's not used anywhere in `lbry-redux` at this point.
You can see the notifications related code in `src/redux/actions/notification.js`, `src/redux/reducers/notification.js` and `src/redux/selectors/notification.js`. We'll need to update `lbry-app` to make use of the new action, which will be the next step after the merge is completed.
|
|||||||
dispatch({
|
|
||||||
![]() https://github.com/lbryio/lbry-app/blob/master/src/renderer/redux/actions/wallet.js#L12
![]()
Yes, we did. I was supposed to delete the You can see the notifications related code in > Did we decide on something like `DO_NOTIFY`?
Yes, we did. I was supposed to delete the `src/redux/actions/app.js` file. It's not used anywhere in `lbry-redux` at this point.
You can see the notifications related code in `src/redux/actions/notification.js`, `src/redux/reducers/notification.js` and `src/redux/selectors/notification.js`. We'll need to update `lbry-app` to make use of the new action, which will be the next step after the merge is completed.
|
|||||||
type: ACTIONS.SUPPORT_TRANSACTION_FAILED,
|
|
||||||
![]() https://github.com/lbryio/lbry-app/blob/master/src/renderer/redux/actions/wallet.js#L12
![]()
Yes, we did. I was supposed to delete the You can see the notifications related code in > Did we decide on something like `DO_NOTIFY`?
Yes, we did. I was supposed to delete the `src/redux/actions/app.js` file. It's not used anywhere in `lbry-redux` at this point.
You can see the notifications related code in `src/redux/actions/notification.js`, `src/redux/reducers/notification.js` and `src/redux/selectors/notification.js`. We'll need to update `lbry-app` to make use of the new action, which will be the next step after the merge is completed.
|
|||||||
data: { error: results.code },
|
|
||||||
![]() https://github.com/lbryio/lbry-app/blob/master/src/renderer/redux/actions/wallet.js#L12
![]()
Yes, we did. I was supposed to delete the You can see the notifications related code in > Did we decide on something like `DO_NOTIFY`?
Yes, we did. I was supposed to delete the `src/redux/actions/app.js` file. It's not used anywhere in `lbry-redux` at this point.
You can see the notifications related code in `src/redux/actions/notification.js`, `src/redux/reducers/notification.js` and `src/redux/selectors/notification.js`. We'll need to update `lbry-app` to make use of the new action, which will be the next step after the merge is completed.
|
|||||||
});
|
|
||||||
![]() https://github.com/lbryio/lbry-app/blob/master/src/renderer/redux/actions/wallet.js#L12
![]()
Yes, we did. I was supposed to delete the You can see the notifications related code in > Did we decide on something like `DO_NOTIFY`?
Yes, we did. I was supposed to delete the `src/redux/actions/app.js` file. It's not used anywhere in `lbry-redux` at this point.
You can see the notifications related code in `src/redux/actions/notification.js`, `src/redux/reducers/notification.js` and `src/redux/selectors/notification.js`. We'll need to update `lbry-app` to make use of the new action, which will be the next step after the merge is completed.
|
|||||||
dispatch(doOpenModal(MODALS.TRANSACTION_FAILED));
|
|
||||||
![]() https://github.com/lbryio/lbry-app/blob/master/src/renderer/redux/actions/wallet.js#L12
![]()
Yes, we did. I was supposed to delete the You can see the notifications related code in > Did we decide on something like `DO_NOTIFY`?
Yes, we did. I was supposed to delete the `src/redux/actions/app.js` file. It's not used anywhere in `lbry-redux` at this point.
You can see the notifications related code in `src/redux/actions/notification.js`, `src/redux/reducers/notification.js` and `src/redux/selectors/notification.js`. We'll need to update `lbry-app` to make use of the new action, which will be the next step after the merge is completed.
|
|||||||
}
|
|
||||||
![]() https://github.com/lbryio/lbry-app/blob/master/src/renderer/redux/actions/wallet.js#L12
![]()
Yes, we did. I was supposed to delete the You can see the notifications related code in > Did we decide on something like `DO_NOTIFY`?
Yes, we did. I was supposed to delete the `src/redux/actions/app.js` file. It's not used anywhere in `lbry-redux` at this point.
You can see the notifications related code in `src/redux/actions/notification.js`, `src/redux/reducers/notification.js` and `src/redux/selectors/notification.js`. We'll need to update `lbry-app` to make use of the new action, which will be the next step after the merge is completed.
|
|||||||
};
|
|
||||||
![]() https://github.com/lbryio/lbry-app/blob/master/src/renderer/redux/actions/wallet.js#L12
![]()
Yes, we did. I was supposed to delete the You can see the notifications related code in > Did we decide on something like `DO_NOTIFY`?
Yes, we did. I was supposed to delete the `src/redux/actions/app.js` file. It's not used anywhere in `lbry-redux` at this point.
You can see the notifications related code in `src/redux/actions/notification.js`, `src/redux/reducers/notification.js` and `src/redux/selectors/notification.js`. We'll need to update `lbry-app` to make use of the new action, which will be the next step after the merge is completed.
|
|||||||
|
|
||||||
![]() https://github.com/lbryio/lbry-app/blob/master/src/renderer/redux/actions/wallet.js#L12
![]()
Yes, we did. I was supposed to delete the You can see the notifications related code in > Did we decide on something like `DO_NOTIFY`?
Yes, we did. I was supposed to delete the `src/redux/actions/app.js` file. It's not used anywhere in `lbry-redux` at this point.
You can see the notifications related code in `src/redux/actions/notification.js`, `src/redux/reducers/notification.js` and `src/redux/selectors/notification.js`. We'll need to update `lbry-app` to make use of the new action, which will be the next step after the merge is completed.
|
|||||||
const errorCallback = error => {
|
|
||||||
![]() https://github.com/lbryio/lbry-app/blob/master/src/renderer/redux/actions/wallet.js#L12
![]()
Yes, we did. I was supposed to delete the You can see the notifications related code in > Did we decide on something like `DO_NOTIFY`?
Yes, we did. I was supposed to delete the `src/redux/actions/app.js` file. It's not used anywhere in `lbry-redux` at this point.
You can see the notifications related code in `src/redux/actions/notification.js`, `src/redux/reducers/notification.js` and `src/redux/selectors/notification.js`. We'll need to update `lbry-app` to make use of the new action, which will be the next step after the merge is completed.
|
|||||||
dispatch({
|
|
||||||
![]() https://github.com/lbryio/lbry-app/blob/master/src/renderer/redux/actions/wallet.js#L12
![]()
Yes, we did. I was supposed to delete the You can see the notifications related code in > Did we decide on something like `DO_NOTIFY`?
Yes, we did. I was supposed to delete the `src/redux/actions/app.js` file. It's not used anywhere in `lbry-redux` at this point.
You can see the notifications related code in `src/redux/actions/notification.js`, `src/redux/reducers/notification.js` and `src/redux/selectors/notification.js`. We'll need to update `lbry-app` to make use of the new action, which will be the next step after the merge is completed.
|
|||||||
type: ACTIONS.SUPPORT_TRANSACTION_FAILED,
|
|
||||||
![]() https://github.com/lbryio/lbry-app/blob/master/src/renderer/redux/actions/wallet.js#L12
![]()
Yes, we did. I was supposed to delete the You can see the notifications related code in > Did we decide on something like `DO_NOTIFY`?
Yes, we did. I was supposed to delete the `src/redux/actions/app.js` file. It's not used anywhere in `lbry-redux` at this point.
You can see the notifications related code in `src/redux/actions/notification.js`, `src/redux/reducers/notification.js` and `src/redux/selectors/notification.js`. We'll need to update `lbry-app` to make use of the new action, which will be the next step after the merge is completed.
|
|||||||
data: { error: error.code },
|
|
||||||
![]() https://github.com/lbryio/lbry-app/blob/master/src/renderer/redux/actions/wallet.js#L12
![]()
Yes, we did. I was supposed to delete the You can see the notifications related code in > Did we decide on something like `DO_NOTIFY`?
Yes, we did. I was supposed to delete the `src/redux/actions/app.js` file. It's not used anywhere in `lbry-redux` at this point.
You can see the notifications related code in `src/redux/actions/notification.js`, `src/redux/reducers/notification.js` and `src/redux/selectors/notification.js`. We'll need to update `lbry-app` to make use of the new action, which will be the next step after the merge is completed.
|
|||||||
});
|
|
||||||
![]() https://github.com/lbryio/lbry-app/blob/master/src/renderer/redux/actions/wallet.js#L12
![]()
Yes, we did. I was supposed to delete the You can see the notifications related code in > Did we decide on something like `DO_NOTIFY`?
Yes, we did. I was supposed to delete the `src/redux/actions/app.js` file. It's not used anywhere in `lbry-redux` at this point.
You can see the notifications related code in `src/redux/actions/notification.js`, `src/redux/reducers/notification.js` and `src/redux/selectors/notification.js`. We'll need to update `lbry-app` to make use of the new action, which will be the next step after the merge is completed.
|
|||||||
dispatch(doOpenModal(MODALS.TRANSACTION_FAILED));
|
|
||||||
![]() https://github.com/lbryio/lbry-app/blob/master/src/renderer/redux/actions/wallet.js#L12
![]()
Yes, we did. I was supposed to delete the You can see the notifications related code in > Did we decide on something like `DO_NOTIFY`?
Yes, we did. I was supposed to delete the `src/redux/actions/app.js` file. It's not used anywhere in `lbry-redux` at this point.
You can see the notifications related code in `src/redux/actions/notification.js`, `src/redux/reducers/notification.js` and `src/redux/selectors/notification.js`. We'll need to update `lbry-app` to make use of the new action, which will be the next step after the merge is completed.
|
|||||||
};
|
|
||||||
![]() https://github.com/lbryio/lbry-app/blob/master/src/renderer/redux/actions/wallet.js#L12
![]()
Yes, we did. I was supposed to delete the You can see the notifications related code in > Did we decide on something like `DO_NOTIFY`?
Yes, we did. I was supposed to delete the `src/redux/actions/app.js` file. It's not used anywhere in `lbry-redux` at this point.
You can see the notifications related code in `src/redux/actions/notification.js`, `src/redux/reducers/notification.js` and `src/redux/selectors/notification.js`. We'll need to update `lbry-app` to make use of the new action, which will be the next step after the merge is completed.
|
|||||||
|
|
||||||
![]() https://github.com/lbryio/lbry-app/blob/master/src/renderer/redux/actions/wallet.js#L12
![]()
Yes, we did. I was supposed to delete the You can see the notifications related code in > Did we decide on something like `DO_NOTIFY`?
Yes, we did. I was supposed to delete the `src/redux/actions/app.js` file. It's not used anywhere in `lbry-redux` at this point.
You can see the notifications related code in `src/redux/actions/notification.js`, `src/redux/reducers/notification.js` and `src/redux/selectors/notification.js`. We'll need to update `lbry-app` to make use of the new action, which will be the next step after the merge is completed.
|
|||||||
Lbry.wallet_send({
|
Lbry.wallet_send({
|
||||||
claim_id: claimId,
|
claim_id: claimId,
|
||||||
amount,
|
amount,
|
||||||
|
|
||||||
![]() https://github.com/lbryio/lbry-app/blob/master/src/renderer/redux/actions/wallet.js#L12
![]()
Yes, we did. I was supposed to delete the You can see the notifications related code in > Did we decide on something like `DO_NOTIFY`?
Yes, we did. I was supposed to delete the `src/redux/actions/app.js` file. It's not used anywhere in `lbry-redux` at this point.
You can see the notifications related code in `src/redux/actions/notification.js`, `src/redux/reducers/notification.js` and `src/redux/selectors/notification.js`. We'll need to update `lbry-app` to make use of the new action, which will be the next step after the merge is completed.
![]() https://github.com/lbryio/lbry-app/blob/master/src/renderer/redux/actions/wallet.js#L12
![]()
Yes, we did. I was supposed to delete the You can see the notifications related code in > Did we decide on something like `DO_NOTIFY`?
Yes, we did. I was supposed to delete the `src/redux/actions/app.js` file. It's not used anywhere in `lbry-redux` at this point.
You can see the notifications related code in `src/redux/actions/notification.js`, `src/redux/reducers/notification.js` and `src/redux/selectors/notification.js`. We'll need to update `lbry-app` to make use of the new action, which will be the next step after the merge is completed.
|
Should these actions be in
lbry-redux
? I'm inclined to say no.