diff options
author | 2019-04-09 09:59:55 +0200 | |
---|---|---|
committer | 2019-04-09 09:59:55 +0200 | |
commit | 16e10017405ab70041867de3cd86796078ba1c17 (patch) | |
tree | 16bd261e0672b71221f9bcbf93016e3688f58d84 | |
parent | Add settings websocket (diff) | |
download | ferdium-app-16e10017405ab70041867de3cd86796078ba1c17.tar.gz ferdium-app-16e10017405ab70041867de3cd86796078ba1c17.tar.zst ferdium-app-16e10017405ab70041867de3cd86796078ba1c17.zip |
optimize edit buttons
-rw-r--r-- | src/components/settings/account/AccountDashboard.js | 28 |
1 files changed, 16 insertions, 12 deletions
diff --git a/src/components/settings/account/AccountDashboard.js b/src/components/settings/account/AccountDashboard.js index 2a9c9a599..ea335815c 100644 --- a/src/components/settings/account/AccountDashboard.js +++ b/src/components/settings/account/AccountDashboard.js | |||
@@ -164,27 +164,31 @@ export default @observer class AccountDashboard extends Component { | |||
164 | </h2> | 164 | </h2> |
165 | {user.organization && `${user.organization}, `} | 165 | {user.organization && `${user.organization}, `} |
166 | {user.email} | 166 | {user.email} |
167 | {user.isSubscriptionOwner && ( | 167 | {user.isPremium && ( |
168 | <div className="manage-user-links"> | 168 | <div className="manage-user-links"> |
169 | <Button | 169 | <Button |
170 | label={intl.formatMessage(messages.accountEditButton)} | 170 | label={intl.formatMessage(messages.accountEditButton)} |
171 | className="franz-form__button--inverted" | 171 | className="franz-form__button--inverted" |
172 | onClick={openEditAccount} | 172 | onClick={openEditAccount} |
173 | /> | 173 | /> |
174 | <Button | 174 | {user.isSubscriptionOwner && ( |
175 | label={intl.formatMessage(messages.manageSubscriptionButtonLabel)} | 175 | <> |
176 | className="franz-form__button--inverted" | 176 | <Button |
177 | onClick={openBilling} | 177 | label={intl.formatMessage(messages.manageSubscriptionButtonLabel)} |
178 | /> | 178 | className="franz-form__button--inverted" |
179 | <Button | 179 | onClick={openBilling} |
180 | label={intl.formatMessage(messages.invoicesButton)} | 180 | /> |
181 | className="franz-form__button--inverted" | 181 | <Button |
182 | onClick={openInvoices} | 182 | label={intl.formatMessage(messages.invoicesButton)} |
183 | /> | 183 | className="franz-form__button--inverted" |
184 | onClick={openInvoices} | ||
185 | /> | ||
186 | </> | ||
187 | )} | ||
184 | </div> | 188 | </div> |
185 | )} | 189 | )} |
186 | </div> | 190 | </div> |
187 | {!user.isSubscriptionOwner && ( | 191 | {!user.isPremium && ( |
188 | <Button | 192 | <Button |
189 | label={intl.formatMessage(messages.accountEditButton)} | 193 | label={intl.formatMessage(messages.accountEditButton)} |
190 | className="franz-form__button--inverted" | 194 | className="franz-form__button--inverted" |