diff options
author | 2018-01-30 15:22:12 +0100 | |
---|---|---|
committer | 2018-01-30 15:22:12 +0100 | |
commit | 2b5ce92f746ba8fb35ba2cc0d78a8b9a42960e84 (patch) | |
tree | 6b5064d12dc973919b74a25a63bccb182647384f /src/containers/settings/InviteScreen.js | |
parent | [MINOR] fix indentation (diff) | |
download | ferdium-app-2b5ce92f746ba8fb35ba2cc0d78a8b9a42960e84.tar.gz ferdium-app-2b5ce92f746ba8fb35ba2cc0d78a8b9a42960e84.tar.zst ferdium-app-2b5ce92f746ba8fb35ba2cc0d78a8b9a42960e84.zip |
[WIP] started work on infobox
Diffstat (limited to 'src/containers/settings/InviteScreen.js')
-rw-r--r-- | src/containers/settings/InviteScreen.js | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/src/containers/settings/InviteScreen.js b/src/containers/settings/InviteScreen.js index 5a7c64f73..923f08069 100644 --- a/src/containers/settings/InviteScreen.js +++ b/src/containers/settings/InviteScreen.js | |||
@@ -3,9 +3,21 @@ import PropTypes from 'prop-types'; | |||
3 | import { inject, observer } from 'mobx-react'; | 3 | import { inject, observer } from 'mobx-react'; |
4 | import Invite from '../../components/auth/Invite'; | 4 | import Invite from '../../components/auth/Invite'; |
5 | import { gaPage } from '../../lib/analytics'; | 5 | import { gaPage } from '../../lib/analytics'; |
6 | import { defineMessages, intlShape } from 'react-intl'; | ||
7 | |||
8 | const messages = defineMessages({ | ||
9 | headline: { | ||
10 | id: 'settings.invite.headline', | ||
11 | defaultMessage: '!!!Invite Friends', | ||
12 | }, | ||
13 | }); | ||
6 | 14 | ||
7 | @inject('stores', 'actions') @observer | 15 | @inject('stores', 'actions') @observer |
8 | export default class InviteScreen extends Component { | 16 | export default class InviteScreen extends Component { |
17 | static contextTypes = { | ||
18 | intl: intlShape, | ||
19 | }; | ||
20 | |||
9 | componentDidMount() { | 21 | componentDidMount() { |
10 | gaPage('Settings/Invite'); | 22 | gaPage('Settings/Invite'); |
11 | } | 23 | } |
@@ -19,14 +31,14 @@ export default class InviteScreen extends Component { | |||
19 | return ( | 31 | return ( |
20 | <div className="settings__main"> | 32 | <div className="settings__main"> |
21 | <div className="settings__header"> | 33 | <div className="settings__header"> |
22 | {/* <h1>{intl.formatMessage(messages.headline)}</h1> */} | 34 | <h1>{this.context.intl.formatMessage(messages.headline)}</h1> |
23 | <h1>Invite Friends</h1> | ||
24 | </div> | 35 | </div> |
25 | <div className="settings__body invite__form"> | 36 | <div className="settings__body invite__form"> |
26 | <Invite | 37 | <Invite |
27 | onSubmit={actions.user.invite} | 38 | onSubmit={actions.user.invite} |
28 | from={location.query.from} | 39 | from={location.query.from} |
29 | embed={location.query.embed} | 40 | embed={true} |
41 | success={location.query.success} | ||
30 | /> | 42 | /> |
31 | </div> | 43 | </div> |
32 | </div> | 44 | </div> |