leave rss links in the main comment form only

This commit is contained in:
igoradamenko
2018-05-18 18:22:26 +03:00
parent 359ee35bfc
commit 12f3e1ca5c
2 changed files with 16 additions and 10 deletions
+15 -10
View File
@@ -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&nbsp;this
{' '}
<a className="input__rss-link" href={RSS_THREAD_URL} target="_blank">Thread</a>
{' '}
or&nbsp;
<a className="input__rss-link" href={RSS_SITE_URL} target="_blank">Site</a>
{' '}
by&nbsp;RSS
</div>
{
mods.type === 'main' && (
<div className="input__rss">
Subscribe to&nbsp;this
{' '}
<a className="input__rss-link" href={RSS_THREAD_URL} target="_blank">Thread</a>
{' '}
or&nbsp;
<a className="input__rss-link" href={RSS_SITE_URL} target="_blank">Site</a>
{' '}
by&nbsp;RSS
</div>
)
}
</div>
{
+1
View File
@@ -206,6 +206,7 @@ export default class Root extends Component {
!isGuest && (
<Input
mix="root__input"
mods={{ type: 'main' }}
onSubmit={this.addComment}
/>
)