aboutsummaryrefslogtreecommitdiffstats
path: root/src/components
diff options
context:
space:
mode:
authorLibravatar haraldox <hnaumann+github@gmail.com>2018-01-21 18:35:29 +0100
committerLibravatar haraldox <hnaumann+github@gmail.com>2018-01-21 18:35:29 +0100
commit05269a20c78406d8ff3a83fddca923a996f82d1b (patch)
tree0b6b4b69f08cd5632e25a43b4b554a12be411f01 /src/components
parentallow arbitrary routes in dev mode (diff)
downloadferdium-app-05269a20c78406d8ff3a83fddca923a996f82d1b.tar.gz
ferdium-app-05269a20c78406d8ff3a83fddca923a996f82d1b.tar.zst
ferdium-app-05269a20c78406d8ff3a83fddca923a996f82d1b.zip
ADDED invite button in Account Settings
[WIP] return to previous route on submit / cancel
Diffstat (limited to 'src/components')
-rw-r--r--src/components/settings/account/AccountDashboard.js27
1 files changed, 23 insertions, 4 deletions
diff --git a/src/components/settings/account/AccountDashboard.js b/src/components/settings/account/AccountDashboard.js
index 43272fe96..1e71beadf 100644
--- a/src/components/settings/account/AccountDashboard.js
+++ b/src/components/settings/account/AccountDashboard.js
@@ -48,6 +48,11 @@ const messages = defineMessages({
48 id: 'settings.account.account.editButton', 48 id: 'settings.account.account.editButton',
49 defaultMessage: '!!!Edit Account', 49 defaultMessage: '!!!Edit Account',
50 }, 50 },
51 accountInviteButton: {
52 id: "settings.account.account.inviteButton",
53 defaultMessage: '!!!Invite Friends',
54 },
55
51 invoiceDownload: { 56 invoiceDownload: {
52 id: 'settings.account.invoiceDownload', 57 id: 'settings.account.invoiceDownload',
53 defaultMessage: '!!!Download', 58 defaultMessage: '!!!Download',
@@ -174,10 +179,24 @@ export default class AccountDashboard extends Component {
174 <span className="badge badge--premium">{intl.formatMessage(messages.accountTypePremium)}</span> 179 <span className="badge badge--premium">{intl.formatMessage(messages.accountTypePremium)}</span>
175 )} 180 )}
176 </div> 181 </div>
177 <Link to="/settings/user/edit" className="button"> 182 <div className="grid">
178 {intl.formatMessage(messages.accountEditButton)} 183 <div className="grid__row">
179 </Link> 184 <Link to="/settings/user/edit" className="button account__edit-button">
180 185 {intl.formatMessage(messages.accountEditButton)}
186 </Link>
187 </div>
188 <div className="grid__row">
189 <Link
190 to={{
191 pathname: '/auth/signup/invite',
192 state: { fromSettings: true }
193 }}
194 className="button account__invite-button">
195 {intl.formatMessage(messages.accountInviteButton)}
196 </Link>
197 </div>
198 </div>
199
181 {user.emailValidated} 200 {user.emailValidated}
182 </div> 201 </div>
183 </div> 202 </div>