diff options
author | 2019-09-27 11:23:31 +0200 | |
---|---|---|
committer | 2019-09-27 11:23:31 +0200 | |
commit | 8f60790de89ee7fd7a150a83a8ca39b4bf76509c (patch) | |
tree | 0e35a3687da220389747d8998f3c978898fb2fd7 /src/containers | |
parent | Bump to 5.3.4-beta.4 (diff) | |
download | ferdium-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.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 | }; | ||