diff options
author | 2018-02-03 10:41:57 +0100 | |
---|---|---|
committer | 2018-02-03 10:41:57 +0100 | |
commit | 7c84f04a6aca07638276d717ad56e27c984710e2 (patch) | |
tree | 1c9602b31c74b53db4486ada3cde6d5b5173810d /src | |
parent | fix defaultProps (diff) | |
download | ferdium-app-7c84f04a6aca07638276d717ad56e27c984710e2.tar.gz ferdium-app-7c84f04a6aca07638276d717ad56e27c984710e2.tar.zst ferdium-app-7c84f04a6aca07638276d717ad56e27c984710e2.zip |
REMOVE invite button from Account Dashboard
Diffstat (limited to 'src')
-rw-r--r-- | src/components/settings/account/AccountDashboard.js | 22 | ||||
-rw-r--r-- | src/styles/settings.scss | 9 |
2 files changed, 3 insertions, 28 deletions
diff --git a/src/components/settings/account/AccountDashboard.js b/src/components/settings/account/AccountDashboard.js index 2e2805557..649c4b067 100644 --- a/src/components/settings/account/AccountDashboard.js +++ b/src/components/settings/account/AccountDashboard.js | |||
@@ -180,25 +180,9 @@ export default class AccountDashboard extends Component { | |||
180 | <span className="badge badge--premium">{intl.formatMessage(messages.accountTypePremium)}</span> | 180 | <span className="badge badge--premium">{intl.formatMessage(messages.accountTypePremium)}</span> |
181 | )} | 181 | )} |
182 | </div> | 182 | </div> |
183 | <div className="grid"> | 183 | <Link to="/settings/user/edit" className="button account__edit-button"> |
184 | <div className="grid__row"> | 184 | {intl.formatMessage(messages.accountEditButton)} |
185 | <Link to="/settings/user/edit" className="button account__edit-button"> | 185 | </Link> |
186 | {intl.formatMessage(messages.accountEditButton)} | ||
187 | </Link> | ||
188 | </div> | ||
189 | <div className="grid__row"> | ||
190 | <Link | ||
191 | to={{ | ||
192 | pathname: '/auth/signup/invite', | ||
193 | query: { from: pathname }, | ||
194 | // state: { "from": 'hi' } // is not being passed to route | ||
195 | }} | ||
196 | className="button account__invite-button" | ||
197 | > | ||
198 | {intl.formatMessage(messages.accountInviteButton)} | ||
199 | </Link> | ||
200 | </div> | ||
201 | </div> | ||
202 | {user.emailValidated} | 186 | {user.emailValidated} |
203 | </div> | 187 | </div> |
204 | </div> | 188 | </div> |
diff --git a/src/styles/settings.scss b/src/styles/settings.scss index f436b1eda..2182c9b5f 100644 --- a/src/styles/settings.scss +++ b/src/styles/settings.scss | |||
@@ -282,15 +282,6 @@ | |||
282 | } | 282 | } |
283 | } | 283 | } |
284 | 284 | ||
285 | .account__edit-button { | ||
286 | width: 170px; | ||
287 | margin-bottom: 10px; | ||
288 | } | ||
289 | |||
290 | .account__invite-button { | ||
291 | width: 170px; | ||
292 | } | ||
293 | |||
294 | .account__subscription { | 285 | .account__subscription { |
295 | display: flex; | 286 | display: flex; |
296 | align-items: center; | 287 | align-items: center; |