From 6744c080d79441b3b08df405077efcb7648210ca Mon Sep 17 00:00:00 2001 From: Jorik Schellekens Date: Mon, 12 Aug 2019 15:53:32 +0100 Subject: Changes in structure. --- .../view/webui/js/components/ServerName.jsx | 2 +- .../view/webui/js/components/StatsReporter.jsx | 24 ++++++++++++++-------- 2 files changed, 16 insertions(+), 10 deletions(-) diff --git a/synapse_topology/view/webui/js/components/ServerName.jsx b/synapse_topology/view/webui/js/components/ServerName.jsx index 958f7cf994..f3ee11dfe4 100644 --- a/synapse_topology/view/webui/js/components/ServerName.jsx +++ b/synapse_topology/view/webui/js/components/ServerName.jsx @@ -27,7 +27,7 @@ export default ({ onClick }) => {

- +
diff --git a/synapse_topology/view/webui/js/components/StatsReporter.jsx b/synapse_topology/view/webui/js/components/StatsReporter.jsx index 47ce55b521..d5f03d8d89 100644 --- a/synapse_topology/view/webui/js/components/StatsReporter.jsx +++ b/synapse_topology/view/webui/js/components/StatsReporter.jsx @@ -1,15 +1,16 @@ -import React from 'react'; +import React, { useState } from 'react'; import style from '../../less/main.less'; -import ButtonDisplay from './ButtonDisplay'; import Accordion from 'react-bootstrap/Accordion'; import Card from 'react-bootstrap/Card'; import { STATS_REPORT_UI } from '../reducers/ui_constants'; -export default ({ onClick }) => - +export default ({ onClick }) => { + const [consent, setConsent] = useState(true); + + return Anonymous Statistics @@ -20,10 +21,15 @@ export default ({ onClick }) => Your server will send anonymised, aggregated statistics to matrix.org on user usage so we can measure the health of the Matrix ecosystem.

- - - - + + -
\ No newline at end of file +
+} \ No newline at end of file -- cgit 1.5.1