/
githubmirror
/
wp-calypso
Обзор
Документация
Войти
/
githubmirror
/
wp-calypso
Код
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
trunk
client/reader/feed-stream/empty.jsx
39 строк
1 KB
Dean Sas
Clean-up wording in various error messages (#103372)
19 май 2025, 13:52
Не верифицирован
19 май 2025, 13:52
615504a
Код
Авторство
О чём код?
import { localize } from 'i18n-calypso'; import { PureComponent } from 'react'; import { connect } from 'react-redux'; import EmptyContent from 'calypso/components/empty-content'; import { recordAction, recordGaEvent } from 'calypso/reader/stats'; import { recordReaderTracksEvent } from 'calypso/state/reader/analytics/actions'; class FeedEmptyContent extends PureComponent { recordAction = () => { recordAction( 'clicked_search_on_empty' ); recordGaEvent( 'Clicked Search on EmptyContent' ); this.props.recordReaderTracksEvent( 'calypso_reader_search_on_empty_feed_clicked' ); }; render() { const { translate } = this.props; const action = ( <a className="empty-content__action button is-primary" // eslint-disable-line onClick={ this.recordAction } href="/reader/search" > { translate( 'Find sites to follow' ) } </a> ); return ( <EmptyContent title={ translate( 'No recent posts' ) } line={ translate( 'This site has not posted anything recently.' ) } action={ action } /> ); } } export default connect( null, { recordReaderTracksEvent, } )( localize( FeedEmptyContent ) );