diff --git a/package.json b/package.json index 436350b8a..1e356cc06 100644 --- a/package.json +++ b/package.json @@ -130,7 +130,7 @@ "imagesloaded": "^4.1.4", "json-loader": "^0.5.4", "lbry-format": "https://github.com/lbryio/lbry-format.git", - "lbry-redux": "lbryio/lbry-redux#387aa8d0a8e9383f4f27c991bfd9c37fdb14a779", + "lbry-redux": "lbryio/lbry-redux#df043f3ef6076b52cec11be76069e0c7c9c19e0a", "lbryinc": "lbryio/lbryinc#12aefaa14343d2f3eac01f2683701f58e53f1848", "lint-staged": "^7.0.2", "localforage": "^1.7.1", diff --git a/ui/component/commentCreate/view.jsx b/ui/component/commentCreate/view.jsx index b93551e90..53cfc6aaa 100644 --- a/ui/component/commentCreate/view.jsx +++ b/ui/component/commentCreate/view.jsx @@ -4,10 +4,10 @@ import React, { useEffect, useState } from 'react'; import classnames from 'classnames'; import { FormField, Form } from 'component/common/form'; import Button from 'component/button'; -import ChannelSection from 'component/selectChannel'; +import ChannelSelection from 'component/selectChannel'; import usePersistedState from 'effects/use-persisted-state'; import * as MODALS from 'constants/modal_types'; -import I18nMessage from '../i18nMessage/view'; +import I18nMessage from 'component/i18nMessage'; type Props = { commentingEnabled: boolean, @@ -94,7 +94,7 @@ export function CommentCreate(props: Props) { return (
- {!isReply && } + {!isReply && } { +class ChannelSelection extends React.PureComponent { constructor(props: Props) { super(props); @@ -46,6 +46,13 @@ class ChannelSection extends React.PureComponent { } } + componentDidUpdate() { + const { channels } = this.props; + if (!channels) { + this.setState({ addingChannel: true }); + } + } + handleChannelChange(event: SyntheticInputEvent<*>) { const { onChannelChange } = this.props; const channel = event.target.value; @@ -105,4 +112,4 @@ class ChannelSection extends React.PureComponent { } } -export default ChannelSection; +export default ChannelSelection; diff --git a/yarn.lock b/yarn.lock index ecb5aa26a..98df7b496 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6139,9 +6139,9 @@ lazy-val@^1.0.4: yargs "^13.2.2" zstd-codec "^0.1.1" -lbry-redux@lbryio/lbry-redux#387aa8d0a8e9383f4f27c991bfd9c37fdb14a779: +lbry-redux@lbryio/lbry-redux#df043f3ef6076b52cec11be76069e0c7c9c19e0a: version "0.0.1" - resolved "https://codeload.github.com/lbryio/lbry-redux/tar.gz/387aa8d0a8e9383f4f27c991bfd9c37fdb14a779" + resolved "https://codeload.github.com/lbryio/lbry-redux/tar.gz/df043f3ef6076b52cec11be76069e0c7c9c19e0a" dependencies: proxy-polyfill "0.1.6" reselect "^3.0.0"