From e061ea5f71109edbbf7869265f443448cace4f60 Mon Sep 17 00:00:00 2001 From: Claire Date: Fri, 17 Dec 2021 23:00:41 +0100 Subject: [Glitch] Change title of retention chart Port 0c17fd91091fd2f230224d5fce218688d480502c to glitch-soc Signed-off-by: Claire --- app/javascript/flavours/glitch/components/admin/Retention.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'app') diff --git a/app/javascript/flavours/glitch/components/admin/Retention.js b/app/javascript/flavours/glitch/components/admin/Retention.js index 8295362a4..9127839f6 100644 --- a/app/javascript/flavours/glitch/components/admin/Retention.js +++ b/app/javascript/flavours/glitch/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}
-- cgit