From: Claire Date: Fri, 17 Dec 2021 22:00:41 +0000 (+0100) Subject: Change title of retention chart (#16909) X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=0c17fd91091fd2f230224d5fce218688d480502c;p=mastodon.git 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. --- diff --git a/app/javascript/mastodon/components/admin/Retention.js b/app/javascript/mastodon/components/admin/Retention.js index aa06722f7..3a7aaed9d 100644 --- a/app/javascript/mastodon/components/admin/Retention.js +++ b/app/javascript/mastodon/components/admin/Retention.js @@ -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 = ; + break; + default: + title = ; + }; + return (
-

+

{title}

{content}