aboutsummaryrefslogtreecommitdiffstats
path: root/src/containers
diff options
context:
space:
mode:
authorLibravatar vantezzen <hello@vantezzen.io>2019-09-27 11:23:31 +0200
committerLibravatar vantezzen <hello@vantezzen.io>2019-09-27 11:23:31 +0200
commit8f60790de89ee7fd7a150a83a8ca39b4bf76509c (patch)
tree0e35a3687da220389747d8998f3c978898fb2fd7 /src/containers
parentBump to 5.3.4-beta.4 (diff)
downloadferdium-app-8f60790de89ee7fd7a150a83a8ca39b4bf76509c.tar.gz
ferdium-app-8f60790de89ee7fd7a150a83a8ca39b4bf76509c.tar.zst
ferdium-app-8f60790de89ee7fd7a150a83a8ca39b4bf76509c.zip
Replace "invite friends" screen with "support Ferdi" screen
Diffstat (limited to 'src/containers')
-rw-r--r--src/containers/settings/SupportScreen.js36
1 files changed, 36 insertions, 0 deletions
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 @@
1import React, { Component } from 'react';
2import { inject } from 'mobx-react';
3import PropTypes from 'prop-types';
4
5import SupportFerdi from '../../components/settings/supportFerdi/SupportFerdiDashboard';
6import ErrorBoundary from '../../components/util/ErrorBoundary';
7
8export default @inject('actions') class SupportScreen extends Component {
9 constructor(props) {
10 super(props);
11
12 this.openLink = this.openLink.bind(this);
13 }
14
15 openLink(url) {
16 this.props.actions.app.openExternalUrl({ url });
17 }
18
19 render() {
20 return (
21 <ErrorBoundary>
22 <SupportFerdi
23 openLink={this.openLink}
24 />
25 </ErrorBoundary>
26 );
27 }
28}
29
30SupportScreen.wrappedComponent.propTypes = {
31 actions: PropTypes.shape({
32 app: PropTypes.shape({
33 openExternalUrl: PropTypes.func.isRequired,
34 }).isRequired,
35 }).isRequired,
36};