mirror of
https://github.com/whippyshou/mastodon
synced 2024-12-01 00:08:32 +09:00
Change title of retention chart (#16909)
Changes from “Retention” to “User retention rate by month after sign-up”. This should make it much clearer to people not familiar with retention charts what it actually means.
This commit is contained in:
parent
40f202c1e5
commit
0c17fd9109
@ -42,6 +42,7 @@ export default class Retention extends React.PureComponent {
|
|||||||
|
|
||||||
render () {
|
render () {
|
||||||
const { loading, data } = this.state;
|
const { loading, data } = this.state;
|
||||||
|
const { frequency } = this.props;
|
||||||
|
|
||||||
let content;
|
let content;
|
||||||
|
|
||||||
@ -129,9 +130,18 @@ export default class Retention extends React.PureComponent {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let title = null;
|
||||||
|
switch(frequency) {
|
||||||
|
case 'day':
|
||||||
|
title = <FormattedMessage id='admin.dashboard.daily_retention' defaultMessage='User retention rate by day after sign-up' />;
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
title = <FormattedMessage id='admin.dashboard.monthly_retention' defaultMessage='User retention rate by month after sign-up' />;
|
||||||
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className='retention'>
|
<div className='retention'>
|
||||||
<h4><FormattedMessage id='admin.dashboard.retention' defaultMessage='Retention' /></h4>
|
<h4>{title}</h4>
|
||||||
|
|
||||||
{content}
|
{content}
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user