From 93a2b6f9e6e1f5a0a2403c4c6f8c986c98e008d3 Mon Sep 17 00:00:00 2001 From: Sean Yesmunt Date: Wed, 6 Jun 2018 02:13:26 -0400 Subject: [PATCH] minor style changes --- package.json | 4 +- .../component/fileListSearch/view.jsx | 6 +-- src/renderer/component/fileTile/view.jsx | 2 +- src/renderer/modal/modalRouter/view.jsx | 3 -- src/renderer/modal/modalSearch/index.js | 13 ------- src/renderer/modal/modalSearch/view.jsx | 25 ------------- src/renderer/page/search/view.jsx | 37 +++++++++---------- src/renderer/scss/_vars.scss | 4 +- src/renderer/scss/component/_card.scss | 18 ++++----- src/renderer/scss/component/_file-list.scss | 4 +- src/renderer/scss/component/_search.scss | 24 +++--------- yarn.lock | 4 +- 12 files changed, 42 insertions(+), 102 deletions(-) delete mode 100644 src/renderer/modal/modalSearch/index.js delete mode 100644 src/renderer/modal/modalSearch/view.jsx diff --git a/package.json b/package.json index f0fec55c1..f481cb6b9 100644 --- a/package.json +++ b/package.json @@ -48,7 +48,7 @@ "formik": "^0.10.4", "hast-util-sanitize": "^1.1.2", "keytar": "^4.2.1", - "lbry-redux": "lbryio/lbry-redux#02e47f922e5ba8908b5848c15b84196c87b9804d", + "lbry-redux": "lbryio/lbry-redux#543af2fcee7e4c45ccaf73af7b47d4b1a5d8ad44", "localforage": "^1.7.1", "mixpanel-browser": "^2.17.1", "moment": "^2.22.0", @@ -127,7 +127,7 @@ "yarn": "^1.3" }, "lbrySettings": { - "lbrynetDaemonVersion": "0.20.0rc9", + "lbrynetDaemonVersion": "0.19.3", "lbrynetDaemonUrlTemplate": "https://github.com/lbryio/lbry/releases/download/vDAEMONVER/lbrynet-daemon-vDAEMONVER-OSNAME.zip", "lbrynetDaemonDir": "static/daemon", "lbrynetDaemonFileName": "lbrynet-daemon" diff --git a/src/renderer/component/fileListSearch/view.jsx b/src/renderer/component/fileListSearch/view.jsx index 58c5c4b41..2831eb970 100644 --- a/src/renderer/component/fileListSearch/view.jsx +++ b/src/renderer/component/fileListSearch/view.jsx @@ -58,7 +58,7 @@ class FileListSearch extends React.PureComponent { return ( query && (
-
+
{__('Content')}
{!isSearching && (fileResults.length ? ( @@ -68,7 +68,7 @@ class FileListSearch extends React.PureComponent { ))}
-
+
{__('Channels')}
{!isSearching && (channelResults.length ? ( @@ -78,7 +78,7 @@ class FileListSearch extends React.PureComponent { ))}
-
+
{__('Your downloads')}
{downloadUris && downloadUris.length ? ( downloadUris.map(uri => ) diff --git a/src/renderer/component/fileTile/view.jsx b/src/renderer/component/fileTile/view.jsx index a223d2bfd..996d81fde 100644 --- a/src/renderer/component/fileTile/view.jsx +++ b/src/renderer/component/fileTile/view.jsx @@ -106,7 +106,7 @@ class FileTile extends React.PureComponent { {isRewardContent && } {showLocal && isDownloaded && }
-
+
{description}
diff --git a/src/renderer/modal/modalRouter/view.jsx b/src/renderer/modal/modalRouter/view.jsx index 96597401f..1e21495d7 100644 --- a/src/renderer/modal/modalRouter/view.jsx +++ b/src/renderer/modal/modalRouter/view.jsx @@ -21,7 +21,6 @@ import ModalFirstSubscription from 'modal/modalFirstSubscription'; import ModalConfirmTransaction from 'modal/modalConfirmTransaction'; import ModalSendTip from '../modalSendTip'; import ModalPublish from '../modalPublish'; -import ModalSearch from '../modalSearch'; import ModalOpenExternalLink from '../modalOpenExternalLink'; class ModalRouter extends React.PureComponent { @@ -155,8 +154,6 @@ class ModalRouter extends React.PureComponent { return ; case MODALS.PUBLISH: return ; - case MODALS.SEARCH: - return ; case MODALS.CONFIRM_EXTERNAL_LINK: return ; case MODALS.CONFIRM_TRANSACTION: diff --git a/src/renderer/modal/modalSearch/index.js b/src/renderer/modal/modalSearch/index.js deleted file mode 100644 index f6dbedb98..000000000 --- a/src/renderer/modal/modalSearch/index.js +++ /dev/null @@ -1,13 +0,0 @@ -import { connect } from 'react-redux'; -import { doHideNotification } from 'lbry-redux'; -import ModalSearch from './view'; -import { doClearPublish } from 'redux/actions/publish'; -import { doNavigate } from 'redux/actions/navigation'; - -const perform = dispatch => ({ - closeModal: () => dispatch(doHideNotification()), - clearPublish: () => dispatch(doClearPublish()), - navigate: (path, params) => dispatch(doNavigate(path, params)), -}); - -export default connect(null, perform)(ModalSearch); diff --git a/src/renderer/modal/modalSearch/view.jsx b/src/renderer/modal/modalSearch/view.jsx deleted file mode 100644 index 8f99fcb64..000000000 --- a/src/renderer/modal/modalSearch/view.jsx +++ /dev/null @@ -1,25 +0,0 @@ -// @flow -import React from 'react'; -import { Modal } from 'modal/modal'; -import SearchPage from 'page/search'; -import Button from 'component/button'; -import * as icons from 'constants/icons'; - -type Props = { - closeModal: () => void, - query: string, -}; - -class ModalSearch extends React.PureComponent { - render() { - const { closeModal, query } = this.props; - return ( - -