From f67b3aef883862fe9b0507a61a4eef61c67c9bfa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A9sz=C3=A1ros=20Mih=C3=A1ly?= Date: Fri, 22 May 2020 21:26:15 +0200 Subject: [PATCH] Add support and privacy URLs (#414) --- app/public/config/config.example.js | 9 +++++++++ app/src/components/Controls/About.js | 30 ++++++++++++++++++++++++---- 2 files changed, 35 insertions(+), 4 deletions(-) diff --git a/app/public/config/config.example.js b/app/public/config/config.example.js index 61fb774..2bb5fb5 100644 --- a/app/public/config/config.example.js +++ b/app/public/config/config.example.js @@ -133,6 +133,15 @@ var config = // Add file and uncomment for adding logo to appbar // logo : 'images/logo.svg', title : 'Multiparty meeting', + // Service & Support URL + // if not set then not displayed on the about modals + supportUrl : 'https://support.example.com', + // Privacy and dataprotection URL or path + // by default privacy/privacy.html + // that is a placeholder for your policies + // + // but an external url could be also used here + privacyUrl : 'static/privacy.html', theme : { palette : diff --git a/app/src/components/Controls/About.js b/app/src/components/Controls/About.js index 77cbc8a..1786652 100644 --- a/app/src/components/Controls/About.js +++ b/app/src/components/Controls/About.js @@ -13,6 +13,7 @@ import DialogContent from '@material-ui/core/DialogContent'; import DialogContentText from '@material-ui/core/DialogContentText'; import Link from '@material-ui/core/Link'; import Button from '@material-ui/core/Button'; +import Divider from '@material-ui/core/Divider'; const styles = (theme) => ({ @@ -45,9 +46,13 @@ const styles = (theme) => display : 'block', textAlign : 'center', marginBottom : theme.spacing(1) + }, + divider : + { + marginBottom : theme.spacing(3) } }); - +const eduMeetUrl='https://edumeet.org'; const About = ({ aboutOpen, handleCloseAbout, @@ -86,9 +91,11 @@ const About = ({ Amsterdam, The Netherlands. UK branch address: City House, 126-130 Hills Road, Cambridge CB2 1PQ, UK. - - https://edumeet.org - + + + {eduMeetUrl} + + :{` ${process.env.REACT_APP_VERSION}`} + + { + window.config.supportUrl + && + + Visit for more info: + + { window.config.supportUrl } + + + } + + Data protection and Privacy Policy + + { window.config.logo && Logo }