diff options
Diffstat (limited to 'src/components')
-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" |