diff options
author | 2018-02-08 12:21:31 +0100 | |
---|---|---|
committer | 2018-02-08 12:21:31 +0100 | |
commit | 2a25f02d74876d25dfacd3af45a8919122fa8a6a (patch) | |
tree | f7f3bf6a9588ea331a0c3af59c693c94d4033793 /src/containers | |
parent | [MINOR] ADD blank line (diff) | |
download | ferdium-app-2a25f02d74876d25dfacd3af45a8919122fa8a6a.tar.gz ferdium-app-2a25f02d74876d25dfacd3af45a8919122fa8a6a.tar.zst ferdium-app-2a25f02d74876d25dfacd3af45a8919122fa8a6a.zip |
REMOVE presentational stuff from smart container
Diffstat (limited to 'src/containers')
-rw-r--r-- | src/containers/auth/InviteScreen.js | 10 | ||||
-rw-r--r-- | src/containers/settings/InviteScreen.js | 31 |
2 files changed, 10 insertions, 31 deletions
diff --git a/src/containers/auth/InviteScreen.js b/src/containers/auth/InviteScreen.js index e54d8d225..059888c99 100644 --- a/src/containers/auth/InviteScreen.js +++ b/src/containers/auth/InviteScreen.js | |||
@@ -14,12 +14,10 @@ export default class InviteScreen extends Component { | |||
14 | const { actions } = this.props; | 14 | const { actions } = this.props; |
15 | 15 | ||
16 | return ( | 16 | return ( |
17 | <div className="auth__container auth__container--signup"> | 17 | <Invite |
18 | <Invite | 18 | onSubmit={actions.user.invite} |
19 | onSubmit={actions.user.invite} | 19 | embed={false} |
20 | embed={false} | 20 | /> |
21 | /> | ||
22 | </div> | ||
23 | ); | 21 | ); |
24 | } | 22 | } |
25 | } | 23 | } |
diff --git a/src/containers/settings/InviteScreen.js b/src/containers/settings/InviteScreen.js index 1947e79f0..5f341b1b3 100644 --- a/src/containers/settings/InviteScreen.js +++ b/src/containers/settings/InviteScreen.js | |||
@@ -1,24 +1,12 @@ | |||
1 | import React, { Component } from 'react'; | 1 | import React, { Component } from 'react'; |
2 | import PropTypes from 'prop-types'; | 2 | import PropTypes from 'prop-types'; |
3 | import { inject, observer } from 'mobx-react'; | 3 | import { inject, observer } from 'mobx-react'; |
4 | import { defineMessages, intlShape } from 'react-intl'; | ||
5 | 4 | ||
6 | import Invite from '../../components/auth/Invite'; | 5 | import Invite from '../../components/auth/Invite'; |
7 | import { gaPage } from '../../lib/analytics'; | 6 | import { gaPage } from '../../lib/analytics'; |
8 | 7 | ||
9 | const messages = defineMessages({ | ||
10 | headline: { | ||
11 | id: 'settings.invite.headline', | ||
12 | defaultMessage: '!!!Invite Friends', | ||
13 | }, | ||
14 | }); | ||
15 | |||
16 | @inject('stores', 'actions') @observer | 8 | @inject('stores', 'actions') @observer |
17 | export default class InviteScreen extends Component { | 9 | export default class InviteScreen extends Component { |
18 | static contextTypes = { | ||
19 | intl: intlShape, | ||
20 | }; | ||
21 | |||
22 | componentDidMount() { | 10 | componentDidMount() { |
23 | gaPage('Settings/Invite'); | 11 | gaPage('Settings/Invite'); |
24 | } | 12 | } |
@@ -32,19 +20,12 @@ export default class InviteScreen extends Component { | |||
32 | const { user } = this.props.stores; | 20 | const { user } = this.props.stores; |
33 | 21 | ||
34 | return ( | 22 | return ( |
35 | <div className="settings__main"> | 23 | <Invite |
36 | <div className="settings__header"> | 24 | onSubmit={actions.user.invite} |
37 | <h1>{this.context.intl.formatMessage(messages.headline)}</h1> | 25 | isLoadingInvite={user.inviteRequest.isExecuting} |
38 | </div> | 26 | isInviteSuccessful={user.inviteRequest.wasExecuted && !user.inviteRequest.isError} |
39 | <div className="settings__body invite__form"> | 27 | embed |
40 | <Invite | 28 | /> |
41 | onSubmit={actions.user.invite} | ||
42 | isLoadingInvite={user.inviteRequest.isExecuting} | ||
43 | isInviteSuccessful={user.inviteRequest.wasExecuted && !user.inviteRequest.isError} | ||
44 | embed | ||
45 | /> | ||
46 | </div> | ||
47 | </div> | ||
48 | ); | 29 | ); |
49 | } | 30 | } |
50 | } | 31 | } |