diff options
author | 2021-08-13 00:45:01 +0530 | |
---|---|---|
committer | 2021-08-13 00:45:01 +0530 | |
commit | 2d27d5e66649d4f5baf127a53ee5ae524eae3a59 (patch) | |
tree | c592ea219ac8cd987fc367f57b54034c450ab2ab /src/containers/subscription/SubscriptionPopupScreen.js | |
parent | Ferdi v5.6.0 (diff) | |
parent | 5.6.1-nightly.24 [skip ci] (diff) | |
download | ferdium-app-2d27d5e66649d4f5baf127a53ee5ae524eae3a59.tar.gz ferdium-app-2d27d5e66649d4f5baf127a53ee5ae524eae3a59.tar.zst ferdium-app-2d27d5e66649d4f5baf127a53ee5ae524eae3a59.zip |
chore: merge from nightly branch into release branch in prep for next beta
Diffstat (limited to 'src/containers/subscription/SubscriptionPopupScreen.js')
-rw-r--r-- | src/containers/subscription/SubscriptionPopupScreen.js | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/src/containers/subscription/SubscriptionPopupScreen.js b/src/containers/subscription/SubscriptionPopupScreen.js deleted file mode 100644 index 43966b6a4..000000000 --- a/src/containers/subscription/SubscriptionPopupScreen.js +++ /dev/null | |||
@@ -1,41 +0,0 @@ | |||
1 | import React, { Component } from 'react'; | ||
2 | import PropTypes from 'prop-types'; | ||
3 | import { inject, observer } from 'mobx-react'; | ||
4 | |||
5 | import SubscriptionPopup from '../../components/subscription/SubscriptionPopup'; | ||
6 | import { isDevMode } from '../../environment'; | ||
7 | |||
8 | export default @inject('stores', 'actions') @observer class SubscriptionPopupScreen extends Component { | ||
9 | state = { | ||
10 | complete: false, | ||
11 | }; | ||
12 | |||
13 | completeCheck(event) { | ||
14 | const { url } = event; | ||
15 | |||
16 | if ((url.includes('recurly') && url.includes('confirmation')) || ((url.includes('meetfranz') || isDevMode) && url.includes('success'))) { | ||
17 | this.setState({ | ||
18 | complete: true, | ||
19 | }); | ||
20 | } | ||
21 | } | ||
22 | |||
23 | render() { | ||
24 | return ( | ||
25 | <SubscriptionPopup | ||
26 | url={this.props.router.params.url} | ||
27 | closeWindow={() => window.close()} | ||
28 | completeCheck={e => this.completeCheck(e)} | ||
29 | isCompleted={this.state.complete} | ||
30 | /> | ||
31 | ); | ||
32 | } | ||
33 | } | ||
34 | |||
35 | SubscriptionPopupScreen.wrappedComponent.propTypes = { | ||
36 | router: PropTypes.shape({ | ||
37 | params: PropTypes.shape({ | ||
38 | url: PropTypes.string.isRequired, | ||
39 | }).isRequired, | ||
40 | }).isRequired, | ||
41 | }; | ||