From beb1f1c28adc9872b179a2169e4f8d34adf125c7 Mon Sep 17 00:00:00 2001 From: Vijay A Date: Sun, 11 Feb 2024 09:50:32 +0530 Subject: minor refactoring to remove duplication with a constant --- src/components/settings/account/AccountDashboard.tsx | 8 ++++++-- src/components/settings/team/TeamDashboard.tsx | 4 ++-- 2 files changed, 8 insertions(+), 4 deletions(-) (limited to 'src/components/settings') 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'; import Loader from '../../ui/loader'; import Button from '../../ui/button'; import Infobox from '../../ui/infobox/index'; -import { LOCAL_SERVER, LIVE_FRANZ_API } from '../../../config'; +import { + DEFAULT_LOADER_COLOR, + LOCAL_SERVER, + LIVE_FRANZ_API, +} from '../../../config'; import User from '../../../models/User'; const messages = defineMessages({ @@ -123,7 +127,7 @@ class AccountDashboard extends Component { )} {!isUsingWithoutAccount && ( <> - {isLoading && } + {isLoading && } {!isLoading && userInfoRequestFailed && ( {
- {isLoading && } + {isLoading && } {!isLoading && userInfoRequestFailed && (