aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/settings
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/components/settings
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/components/settings')
-rw-r--r--src/components/settings/account/AccountDashboard.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/components/settings/account/AccountDashboard.js b/src/components/settings/account/AccountDashboard.js
index 1e71beadf..d5f2e238c 100644
--- a/src/components/settings/account/AccountDashboard.js
+++ b/src/components/settings/account/AccountDashboard.js
@@ -118,6 +118,7 @@ export default class AccountDashboard extends Component {
118 deleteAccount, 118 deleteAccount,
119 isLoadingDeleteAccount, 119 isLoadingDeleteAccount,
120 isDeleteAccountSuccessful, 120 isDeleteAccountSuccessful,
121 pathname,
121 } = this.props; 122 } = this.props;
122 const { intl } = this.context; 123 const { intl } = this.context;
123 124
@@ -189,7 +190,8 @@ export default class AccountDashboard extends Component {
189 <Link 190 <Link
190 to={{ 191 to={{
191 pathname: '/auth/signup/invite', 192 pathname: '/auth/signup/invite',
192 state: { fromSettings: true } 193 query: { from: pathname },
194 // state: { "from": 'hi' } // is not being passed to route
193 }} 195 }}
194 className="button account__invite-button"> 196 className="button account__invite-button">
195 {intl.formatMessage(messages.accountInviteButton)} 197 {intl.formatMessage(messages.accountInviteButton)}