diff options
author | André Oliveira <37463445+SpecialAro@users.noreply.github.com> | 2022-06-16 02:41:14 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-16 01:41:14 +0000 |
commit | 4fe7da167b3307b198c3a20bc4a13953c79d2f2f (patch) | |
tree | 43d7b54a35af1d4fd483879e45802e03bed24300 /src/components/settings/account | |
parent | Fix default accent color to Ferdium gradient (#273) (diff) | |
download | ferdium-app-4fe7da167b3307b198c3a20bc4a13953c79d2f2f.tar.gz ferdium-app-4fe7da167b3307b198c3a20bc4a13953c79d2f2f.tar.zst ferdium-app-4fe7da167b3307b198c3a20bc4a13953c79d2f2f.zip |
Remove Ferdi Server from available Servers List (#274)
Diffstat (limited to 'src/components/settings/account')
-rw-r--r-- | src/components/settings/account/AccountDashboard.js | 26 |
1 files changed, 1 insertions, 25 deletions
diff --git a/src/components/settings/account/AccountDashboard.js b/src/components/settings/account/AccountDashboard.js index 32e82940d..8ebf1ac5f 100644 --- a/src/components/settings/account/AccountDashboard.js +++ b/src/components/settings/account/AccountDashboard.js | |||
@@ -8,7 +8,7 @@ import { H1, H2 } from '../../ui/headline'; | |||
8 | import Loader from '../../ui/Loader'; | 8 | import Loader from '../../ui/Loader'; |
9 | import Button from '../../ui/button'; | 9 | import Button from '../../ui/button'; |
10 | import Infobox from '../../ui/Infobox'; | 10 | import Infobox from '../../ui/Infobox'; |
11 | import { LOCAL_SERVER, LIVE_FRANZ_API, LIVE_FERDI_API } from '../../../config'; | 11 | import { LOCAL_SERVER, LIVE_FRANZ_API } from '../../../config'; |
12 | 12 | ||
13 | const messages = defineMessages({ | 13 | const messages = defineMessages({ |
14 | headline: { | 14 | headline: { |
@@ -95,7 +95,6 @@ class AccountDashboard extends Component { | |||
95 | 95 | ||
96 | const isUsingWithoutAccount = server === LOCAL_SERVER; | 96 | const isUsingWithoutAccount = server === LOCAL_SERVER; |
97 | const isUsingFranzServer = server === LIVE_FRANZ_API; | 97 | const isUsingFranzServer = server === LIVE_FRANZ_API; |
98 | const isUsingFerdiServer = server === LIVE_FERDI_API; | ||
99 | 98 | ||
100 | return ( | 99 | return ( |
101 | <div className="settings__main"> | 100 | <div className="settings__main"> |
@@ -211,29 +210,6 @@ class AccountDashboard extends Component { | |||
211 | </div> | 210 | </div> |
212 | </div> | 211 | </div> |
213 | )} | 212 | )} |
214 | {isUsingFerdiServer && ( | ||
215 | <div className="account franz-form"> | ||
216 | <div className="account__box"> | ||
217 | <H2> | ||
218 | {intl.formatMessage(messages.headlineDangerZone)} | ||
219 | </H2> | ||
220 | {!isDeleteAccountSuccessful && ( | ||
221 | <div className="account__subscription"> | ||
222 | <p>{intl.formatMessage(messages.deleteInfo)}</p> | ||
223 | <Button | ||
224 | label={intl.formatMessage(messages.deleteAccount)} | ||
225 | buttonType="danger" | ||
226 | onClick={() => deleteAccount()} | ||
227 | loaded={!isLoadingDeleteAccount} | ||
228 | /> | ||
229 | </div> | ||
230 | )} | ||
231 | {isDeleteAccountSuccessful && ( | ||
232 | <p>{intl.formatMessage(messages.deleteEmailSent)}</p> | ||
233 | )} | ||
234 | </div> | ||
235 | </div> | ||
236 | )} | ||
237 | </> | 213 | </> |
238 | )} | 214 | )} |
239 | </> | 215 | </> |