mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-11-30 17:59:03 +01:00
[Glitch] Change title of retention chart
Port 0c17fd9109
to glitch-soc
Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
parent
d4f315f304
commit
e061ea5f71
1 changed files with 11 additions and 1 deletions
|
@ -42,6 +42,7 @@ export default class Retention extends React.PureComponent {
|
|||
|
||||
render () {
|
||||
const { loading, data } = this.state;
|
||||
const { frequency } = this.props;
|
||||
|
||||
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 (
|
||||
<div className='retention'>
|
||||
<h4><FormattedMessage id='admin.dashboard.retention' defaultMessage='Retention' /></h4>
|
||||
<h4>{title}</h4>
|
||||
|
||||
{content}
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue