diff options
Diffstat (limited to 'src/containers/settings/SupportScreen.js')
-rw-r--r-- | src/containers/settings/SupportScreen.js | 36 |
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 @@ | |||
1 | import React, { Component } from 'react'; | ||
2 | import { inject } from 'mobx-react'; | ||
3 | import PropTypes from 'prop-types'; | ||
4 | |||
5 | import SupportFerdi from '../../components/settings/supportFerdi/SupportFerdiDashboard'; | ||
6 | import ErrorBoundary from '../../components/util/ErrorBoundary'; | ||
7 | |||
8 | export 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 | |||
30 | SupportScreen.wrappedComponent.propTypes = { | ||
31 | actions: PropTypes.shape({ | ||
32 | app: PropTypes.shape({ | ||
33 | openExternalUrl: PropTypes.func.isRequired, | ||
34 | }).isRequired, | ||
35 | }).isRequired, | ||
36 | }; | ||