diff options
author | 2024-02-11 09:50:32 +0530 | |
---|---|---|
committer | 2024-02-11 04:39:55 +0000 | |
commit | beb1f1c28adc9872b179a2169e4f8d34adf125c7 (patch) | |
tree | 86dbd13e3ef6365d0e28fe4d23de7c6b7828f692 /src/components/settings/account/AccountDashboard.tsx | |
parent | remove unused '@types/react-loader' pkg (diff) | |
download | ferdium-app-beb1f1c28adc9872b179a2169e4f8d34adf125c7.tar.gz ferdium-app-beb1f1c28adc9872b179a2169e4f8d34adf125c7.tar.zst ferdium-app-beb1f1c28adc9872b179a2169e4f8d34adf125c7.zip |
minor refactoring to remove duplication with a constant
Diffstat (limited to 'src/components/settings/account/AccountDashboard.tsx')
-rw-r--r-- | src/components/settings/account/AccountDashboard.tsx | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/components/settings/account/AccountDashboard.tsx b/src/components/settings/account/AccountDashboard.tsx index ffa684458..eab019084 100644 --- a/src/components/settings/account/AccountDashboard.tsx +++ b/src/components/settings/account/AccountDashboard.tsx | |||
@@ -7,7 +7,11 @@ import { H1, H2 } from '../../ui/headline'; | |||
7 | import Loader from '../../ui/loader'; | 7 | import Loader from '../../ui/loader'; |
8 | import Button from '../../ui/button'; | 8 | import Button from '../../ui/button'; |
9 | import Infobox from '../../ui/infobox/index'; | 9 | import Infobox from '../../ui/infobox/index'; |
10 | import { LOCAL_SERVER, LIVE_FRANZ_API } from '../../../config'; | 10 | import { |
11 | DEFAULT_LOADER_COLOR, | ||
12 | LOCAL_SERVER, | ||
13 | LIVE_FRANZ_API, | ||
14 | } from '../../../config'; | ||
11 | import User from '../../../models/User'; | 15 | import User from '../../../models/User'; |
12 | 16 | ||
13 | const messages = defineMessages({ | 17 | const messages = defineMessages({ |
@@ -123,7 +127,7 @@ class AccountDashboard extends Component<IProp> { | |||
123 | )} | 127 | )} |
124 | {!isUsingWithoutAccount && ( | 128 | {!isUsingWithoutAccount && ( |
125 | <> | 129 | <> |
126 | {isLoading && <Loader color="#FFFFFF" />} | 130 | {isLoading && <Loader color={DEFAULT_LOADER_COLOR} />} |
127 | 131 | ||
128 | {!isLoading && userInfoRequestFailed && ( | 132 | {!isLoading && userInfoRequestFailed && ( |
129 | <Infobox | 133 | <Infobox |