From 8f60790de89ee7fd7a150a83a8ca39b4bf76509c Mon Sep 17 00:00:00 2001 From: vantezzen Date: Fri, 27 Sep 2019 11:23:31 +0200 Subject: Replace "invite friends" screen with "support Ferdi" screen --- src/containers/settings/SupportScreen.js | 36 ++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 src/containers/settings/SupportScreen.js (limited to 'src/containers/settings/SupportScreen.js') diff --git a/src/containers/settings/SupportScreen.js b/src/containers/settings/SupportScreen.js new file mode 100644 index 000000000..34dce1dae --- /dev/null +++ b/src/containers/settings/SupportScreen.js @@ -0,0 +1,36 @@ +import React, { Component } from 'react'; +import { inject } from 'mobx-react'; +import PropTypes from 'prop-types'; + +import SupportFerdi from '../../components/settings/supportFerdi/SupportFerdiDashboard'; +import ErrorBoundary from '../../components/util/ErrorBoundary'; + +export default @inject('actions') class SupportScreen extends Component { + constructor(props) { + super(props); + + this.openLink = this.openLink.bind(this); + } + + openLink(url) { + this.props.actions.app.openExternalUrl({ url }); + } + + render() { + return ( + + + + ); + } +} + +SupportScreen.wrappedComponent.propTypes = { + actions: PropTypes.shape({ + app: PropTypes.shape({ + openExternalUrl: PropTypes.func.isRequired, + }).isRequired, + }).isRequired, +}; -- cgit v1.2.3-70-g09d2