aboutsummaryrefslogtreecommitdiffstats
path: root/src/containers/settings/SupportScreen.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/containers/settings/SupportScreen.js')
-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};