diff options
author | 2018-02-02 19:46:20 +0100 | |
---|---|---|
committer | 2018-02-02 19:46:20 +0100 | |
commit | cb45601e87c6af08fc8336da13ac6a0bb38b8484 (patch) | |
tree | 9d0d1b2a148a9b245b2aa2e95bf667e7370b12cf /src/containers | |
parent | got server callback and infobox working (diff) | |
download | ferdium-app-cb45601e87c6af08fc8336da13ac6a0bb38b8484.tar.gz ferdium-app-cb45601e87c6af08fc8336da13ac6a0bb38b8484.tar.zst ferdium-app-cb45601e87c6af08fc8336da13ac6a0bb38b8484.zip |
finished embedded invite functionality
ADDED internationalization
ADDED loading indicator in send button
REMOVED query param `from`
Diffstat (limited to 'src/containers')
-rw-r--r-- | src/containers/settings/InviteScreen.js | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/containers/settings/InviteScreen.js b/src/containers/settings/InviteScreen.js index a1170bfec..63e88765e 100644 --- a/src/containers/settings/InviteScreen.js +++ b/src/containers/settings/InviteScreen.js | |||
@@ -31,9 +31,6 @@ export default class InviteScreen extends Component { | |||
31 | const { actions, location } = this.props; | 31 | const { actions, location } = this.props; |
32 | const { user } = this.props.stores; | 32 | const { user } = this.props.stores; |
33 | 33 | ||
34 | const isLoadingInvite = user.inviteRequest.isExecuting; | ||
35 | const isInviteSuccessful = user.inviteRequest.wasExecuted && !user.inviteRequest.isError; | ||
36 | |||
37 | return ( | 34 | return ( |
38 | <div className="settings__main"> | 35 | <div className="settings__main"> |
39 | <div className="settings__header"> | 36 | <div className="settings__header"> |
@@ -42,12 +39,9 @@ export default class InviteScreen extends Component { | |||
42 | <div className="settings__body invite__form"> | 39 | <div className="settings__body invite__form"> |
43 | <Invite | 40 | <Invite |
44 | onSubmit={actions.user.invite} | 41 | onSubmit={actions.user.invite} |
45 | // status={user.actionStatus} // not needed | ||
46 | isLoadingInvite={user.inviteRequest.isExecuting} | 42 | isLoadingInvite={user.inviteRequest.isExecuting} |
47 | isInviteSuccessful={user.inviteRequest.wasExecuted && !user.inviteRequest.isError} | 43 | isInviteSuccessful={user.inviteRequest.wasExecuted && !user.inviteRequest.isError} |
48 | from={location.query.from} | ||
49 | embed={true} | 44 | embed={true} |
50 | success={location.query.success} | ||
51 | /> | 45 | /> |
52 | </div> | 46 | </div> |
53 | </div> | 47 | </div> |
@@ -61,9 +55,4 @@ InviteScreen.wrappedComponent.propTypes = { | |||
61 | invite: PropTypes.func.isRequired, | 55 | invite: PropTypes.func.isRequired, |
62 | }).isRequired, | 56 | }).isRequired, |
63 | }).isRequired, | 57 | }).isRequired, |
64 | location: PropTypes.shape({ | ||
65 | query: PropTypes.shape({ | ||
66 | from: PropTypes.string, | ||
67 | }), | ||
68 | }).isRequired, | ||
69 | }; | 58 | }; |