diff --git a/ui/component/fileDescription/index.js b/ui/component/fileDescription/index.js index 5004b7220..f0646e415 100644 --- a/ui/component/fileDescription/index.js +++ b/ui/component/fileDescription/index.js @@ -2,7 +2,6 @@ import { connect } from 'react-redux'; import { makeSelectClaimForUri, makeSelectMetadataForUri, - makeSelectTagsForUri, makeSelectClaimIsMine, } from 'redux/selectors/claims'; import { makeSelectPendingAmountByUri } from 'redux/selectors/wallet'; @@ -15,7 +14,6 @@ const select = (state, props) => ({ claimIsMine: makeSelectClaimIsMine(props.uri)(state), metadata: makeSelectMetadataForUri(props.uri)(state), user: selectUser(state), - tags: makeSelectTagsForUri(props.uri)(state), pendingAmount: makeSelectPendingAmountByUri(props.uri)(state), }); diff --git a/ui/component/fileDescription/view.jsx b/ui/component/fileDescription/view.jsx index 4b045822e..05310ea39 100644 --- a/ui/component/fileDescription/view.jsx +++ b/ui/component/fileDescription/view.jsx @@ -16,7 +16,6 @@ type Props = { claim: StreamClaim, metadata: StreamMetadata, user: ?any, - tags: any, pendingAmount: number, doOpenModal: (id: string, {}) => void, claimIsMine: boolean, diff --git a/ui/component/supportsLiquidate/index.js b/ui/component/supportsLiquidate/index.js index c7626b769..f2ff697d4 100644 --- a/ui/component/supportsLiquidate/index.js +++ b/ui/component/supportsLiquidate/index.js @@ -8,7 +8,7 @@ import { selectAbandonClaimSupportError, } from 'redux/selectors/wallet'; -import { makeSelectMetadataForUri, makeSelectClaimForUri } from 'redux/selectors/claims'; +import { makeSelectClaimForUri } from 'redux/selectors/claims'; import { doSupportAbandonForClaim } from 'redux/actions/wallet'; import SupportsLiquidate from './view'; @@ -19,7 +19,6 @@ const select = (state, props) => ({ supportsBalance: selectSupportsBalance(state) || undefined, tipsBalance: selectTipsBalance(state) || undefined, claim: makeSelectClaimForUri(props.uri)(state), - metadata: makeSelectMetadataForUri(props.uri)(state), abandonClaimError: selectAbandonClaimSupportError(state), }); diff --git a/ui/component/supportsLiquidate/view.jsx b/ui/component/supportsLiquidate/view.jsx index 3c5771b99..441139b6b 100644 --- a/ui/component/supportsLiquidate/view.jsx +++ b/ui/component/supportsLiquidate/view.jsx @@ -15,7 +15,6 @@ type Props = { supportsBalance: number, tipsBalance: number, claim: any, - metaData: any, handleClose: () => void, abandonSupportForClaim: (string, string, boolean | string, boolean) => any, abandonClaimError: ?string, @@ -37,14 +36,14 @@ const SupportsLiquidate = (props: Props) => { useEffect(() => { if (claimId && abandonSupportForClaim) { - abandonSupportForClaim(claimId, type, false, true).then(r => { + abandonSupportForClaim(claimId, type, false, true).then((r) => { setPreviewBalance(r.total_input); }); } }, [abandonSupportForClaim, claimId, type, setPreviewBalance]); function handleSubmit() { - abandonSupportForClaim(claimId, type, keep, false).then(r => { + abandonSupportForClaim(claimId, type, keep, false).then((r) => { if (r) { handleClose(); } @@ -141,7 +140,7 @@ const SupportsLiquidate = (props: Props) => { step={0.01} max={previewBalance} value={Number(amount) >= 0 ? amount : previewBalance / 4} // by default, set it to 25% of available - onChange={e => handleChange(e.target.value)} + onChange={(e) => handleChange(e.target.value)} />