aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/ui/InfoBar.tsx
diff options
context:
space:
mode:
authorLibravatar Vijay A <vraravam@users.noreply.github.com>2024-02-11 09:50:32 +0530
committerLibravatar Vijay Aravamudhan <vraravam@users.noreply.github.com>2024-02-11 04:39:55 +0000
commitbeb1f1c28adc9872b179a2169e4f8d34adf125c7 (patch)
tree86dbd13e3ef6365d0e28fe4d23de7c6b7828f692 /src/components/ui/InfoBar.tsx
parentremove unused '@types/react-loader' pkg (diff)
downloadferdium-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/ui/InfoBar.tsx')
-rw-r--r--src/components/ui/InfoBar.tsx7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/components/ui/InfoBar.tsx b/src/components/ui/InfoBar.tsx
index ae37546df..f3f1adbe7 100644
--- a/src/components/ui/InfoBar.tsx
+++ b/src/components/ui/InfoBar.tsx
@@ -8,6 +8,7 @@ import { noop } from 'lodash';
8import Loader from './loader/index'; 8import Loader from './loader/index';
9import Appear from './effects/Appear'; 9import Appear from './effects/Appear';
10import Icon from './icon'; 10import Icon from './icon';
11import { DEFAULT_LOADER_COLOR } from '../../config';
11 12
12const messages = defineMessages({ 13const messages = defineMessages({
13 hide: { 14 hide: {
@@ -71,7 +72,11 @@ class InfoBar extends Component<IProps> {
71 className="contentWrapper" 72 className="contentWrapper"
72 style={{ display: 'flex', gap: '8px' }} 73 style={{ display: 'flex', gap: '8px' }}
73 > 74 >
74 <Loader size={18} loaded={!ctaLoading} color="#FFFFFF" /> 75 <Loader
76 size={18}
77 loaded={!ctaLoading}
78 color={DEFAULT_LOADER_COLOR}
79 />
75 {ctaLabel} 80 {ctaLabel}
76 </div> 81 </div>
77 </button> 82 </button>