From ac770518bf9f6767b8a3fc4ff6b039900eea309f Mon Sep 17 00:00:00 2001 From: Sean Yesmunt Date: Tue, 15 Sep 2020 09:54:05 -0400 Subject: [PATCH] remove old syncSettings usage --- ui/component/claimListHeader/index.js | 4 +--- ui/component/claimListHeader/view.jsx | 7 ++----- ui/component/notification/view.jsx | 2 +- ui/component/userSignUp/index.js | 5 ++--- ui/component/userSignUp/view.jsx | 7 ++----- ui/page/settingsAdvanced/view.jsx | 3 ++- 6 files changed, 10 insertions(+), 18 deletions(-) diff --git a/ui/component/claimListHeader/index.js b/ui/component/claimListHeader/index.js index 76701d135..d3b2fd0ed 100644 --- a/ui/component/claimListHeader/index.js +++ b/ui/component/claimListHeader/index.js @@ -2,8 +2,7 @@ import { connect } from 'react-redux'; import { selectFetchingClaimSearch, SETTINGS, selectFollowedTags } from 'lbry-redux'; import { doToggleTagFollowDesktop } from 'redux/actions/tags'; import { makeSelectClientSetting } from 'redux/selectors/settings'; -import { doSetClientSetting, doSyncClientSettings } from 'redux/actions/settings'; - +import { doSetClientSetting } from 'redux/actions/settings'; import ClaimListDiscover from './view'; const select = state => ({ @@ -15,7 +14,6 @@ const select = state => ({ const perform = { doToggleTagFollowDesktop, doSetClientSetting, - doSyncClientSettings, }; export default connect(select, perform)(ClaimListDiscover); diff --git a/ui/component/claimListHeader/view.jsx b/ui/component/claimListHeader/view.jsx index fdb82e1fc..04659e055 100644 --- a/ui/component/claimListHeader/view.jsx +++ b/ui/component/claimListHeader/view.jsx @@ -29,9 +29,8 @@ type Props = { hiddenNsfwMessage?: Node, channelIds?: Array, tileLayout: boolean, - doSetClientSetting: (string, boolean) => void, + doSetClientSetting: (string, boolean, ?boolean) => void, setPage: number => void, - doSyncClientSettings: () => void, }; function ClaimListHeader(props: Props) { @@ -53,7 +52,6 @@ function ClaimListHeader(props: Props) { channelIds, tileLayout, doSetClientSetting, - doSyncClientSettings, setPage, } = props; const { action, push, location } = useHistory(); @@ -241,8 +239,7 @@ function ClaimListHeader(props: Props) { {tileLayout !== undefined && (