aboutsummaryrefslogtreecommitdiffstats
path: root/src/containers/auth/InviteScreen.js
diff options
context:
space:
mode:
authorLibravatar haraldox <hnaumann+github@gmail.com>2018-01-22 14:26:31 +0100
committerLibravatar haraldox <hnaumann+github@gmail.com>2018-01-22 14:26:31 +0100
commit945cb5982c4b1b42d17ce91171b6a6740eb3a3e5 (patch)
tree8481794625abecea3230e49f789b7336be512bf0 /src/containers/auth/InviteScreen.js
parentADDED invite button in Account Settings (diff)
downloadferdium-app-945cb5982c4b1b42d17ce91171b6a6740eb3a3e5.tar.gz
ferdium-app-945cb5982c4b1b42d17ce91171b6a6740eb3a3e5.tar.zst
ferdium-app-945cb5982c4b1b42d17ce91171b6a6740eb3a3e5.zip
return to account screen from invite screen
cheap solution because `state` prop of `<Link>` is not being passed to route
Diffstat (limited to 'src/containers/auth/InviteScreen.js')
-rw-r--r--src/containers/auth/InviteScreen.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/containers/auth/InviteScreen.js b/src/containers/auth/InviteScreen.js
index 6b39b1dd1..a624e2245 100644
--- a/src/containers/auth/InviteScreen.js
+++ b/src/containers/auth/InviteScreen.js
@@ -11,13 +11,15 @@ export default class InviteScreen extends Component {
11 } 11 }
12 12
13 render() { 13 render() {
14 const { actions } = this.props; 14 const {
15 15 actions,
16 console.log(this.props.location.state) 16 location
17 } = this.props;
17 18
18 return ( 19 return (
19 <Invite 20 <Invite
20 onSubmit={actions.user.invite} 21 onSubmit={actions.user.invite}
22 from={location.query.from}
21 /> 23 />
22 ); 24 );
23 } 25 }