leave rss links in the main comment form only
This commit is contained in:
@@ -110,6 +110,7 @@ export default class Input extends Component {
|
||||
|
||||
render(props, { isFieldDisabled, isErrorShown, preview, maxLength, commentLength }) {
|
||||
const charactersLeft = maxLength - commentLength;
|
||||
const { mods = {} } = props;
|
||||
|
||||
return (
|
||||
<form className={b('input', props)} onSubmit={this.send} role="form" aria-label="New comment">
|
||||
@@ -147,16 +148,20 @@ export default class Input extends Component {
|
||||
type="submit"
|
||||
>Send</button>
|
||||
|
||||
<div className="input__rss">
|
||||
Subscribe to this
|
||||
{' '}
|
||||
<a className="input__rss-link" href={RSS_THREAD_URL} target="_blank">Thread</a>
|
||||
{' '}
|
||||
or
|
||||
<a className="input__rss-link" href={RSS_SITE_URL} target="_blank">Site</a>
|
||||
{' '}
|
||||
by RSS
|
||||
</div>
|
||||
{
|
||||
mods.type === 'main' && (
|
||||
<div className="input__rss">
|
||||
Subscribe to this
|
||||
{' '}
|
||||
<a className="input__rss-link" href={RSS_THREAD_URL} target="_blank">Thread</a>
|
||||
{' '}
|
||||
or
|
||||
<a className="input__rss-link" href={RSS_SITE_URL} target="_blank">Site</a>
|
||||
{' '}
|
||||
by RSS
|
||||
</div>
|
||||
)
|
||||
}
|
||||
</div>
|
||||
|
||||
{
|
||||
|
||||
@@ -206,6 +206,7 @@ export default class Root extends Component {
|
||||
!isGuest && (
|
||||
<Input
|
||||
mix="root__input"
|
||||
mods={{ type: 'main' }}
|
||||
onSubmit={this.addComment}
|
||||
/>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user