From 1a7ca6fe7b4b4d5f298697d58cde3ca0ea9f9163 Mon Sep 17 00:00:00 2001 From: Sean Yesmunt Date: Tue, 20 Nov 2018 11:09:19 -0500 Subject: [PATCH] use doOpenModal for upstream changes --- package.json | 2 +- src/renderer/component/fileDetails/index.js | 4 ++-- src/renderer/page/channel/index.js | 4 ++-- yarn.lock | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index 581d48345..4bf268440 100644 --- a/package.json +++ b/package.json @@ -49,7 +49,7 @@ "formik": "^0.10.4", "hast-util-sanitize": "^1.1.2", "keytar": "^4.2.1", - "lbry-redux": "lbryio/lbry-redux#bf83ec3dd8f0417439b2ee4b6bf7b2549c012096", + "lbry-redux": "lbryio/lbry-redux#df8e8c6b44718f8de36aabb9222e74ca9433e13c", "lbryinc": "lbryio/lbryinc#82308ece97188747adbf6d71d55b6e7a6fa0bd95", "localforage": "^1.7.1", "mammoth": "^1.4.6", diff --git a/src/renderer/component/fileDetails/index.js b/src/renderer/component/fileDetails/index.js index 819c505f0..e5ec6da93 100644 --- a/src/renderer/component/fileDetails/index.js +++ b/src/renderer/component/fileDetails/index.js @@ -4,7 +4,7 @@ import { makeSelectContentTypeForUri, makeSelectMetadataForUri, makeSelectFileInfoForUri, - doNotify, + doToast, } from 'lbry-redux'; import { selectUser } from 'lbryinc'; import { doOpenFileInFolder } from 'redux/actions/file'; @@ -23,7 +23,7 @@ const select = (state, props) => ({ const perform = dispatch => ({ openFolder: path => dispatch(doOpenFileInFolder(path)), - showSnackBar: message => dispatch(doNotify({ message, displayType: ['snackbar'] })), + showSnackBar: message => dispatch(doToast(message)), clickCommentButton: () => dispatch(doClickCommentButton()), }); diff --git a/src/renderer/page/channel/index.js b/src/renderer/page/channel/index.js index 498bd92eb..51960e19c 100644 --- a/src/renderer/page/channel/index.js +++ b/src/renderer/page/channel/index.js @@ -9,9 +9,9 @@ import { makeSelectClaimIsMine, makeSelectTotalPagesForChannel, selectCurrentParams, - doNotify, } from 'lbry-redux'; import { doNavigate } from 'redux/actions/navigation'; +import { doOpenModal } from 'redux/actions/app'; import ChannelPage from './view'; const select = (state, props) => ({ @@ -28,7 +28,7 @@ const perform = dispatch => ({ fetchClaims: (uri, page) => dispatch(doFetchClaimsByChannel(uri, page)), fetchClaimCount: uri => dispatch(doFetchClaimCountByChannel(uri)), navigate: (path, params) => dispatch(doNavigate(path, params)), - openModal: (modal, props) => dispatch(doNotify(modal, props)), + openModal: (modal, props) => dispatch(doOpenModal(modal, props)), }); export default connect( diff --git a/yarn.lock b/yarn.lock index fcac3dc55..85ef4b17f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5670,9 +5670,9 @@ lbry-redux@lbryio/lbry-redux#2375860d6269d0369418879c2531b1d48c4e47f2: proxy-polyfill "0.1.6" reselect "^3.0.0" -lbry-redux@lbryio/lbry-redux#bf83ec3dd8f0417439b2ee4b6bf7b2549c012096: +lbry-redux@lbryio/lbry-redux#df8e8c6b44718f8de36aabb9222e74ca9433e13c: version "0.0.1" - resolved "https://codeload.github.com/lbryio/lbry-redux/tar.gz/bf83ec3dd8f0417439b2ee4b6bf7b2549c012096" + resolved "https://codeload.github.com/lbryio/lbry-redux/tar.gz/df8e8c6b44718f8de36aabb9222e74ca9433e13c" dependencies: proxy-polyfill "0.1.6" reselect "^3.0.0"