diff options
author | Vijay A <vraravam@users.noreply.github.com> | 2024-02-11 09:50:32 +0530 |
---|---|---|
committer | Vijay Aravamudhan <vraravam@users.noreply.github.com> | 2024-02-11 04:39:55 +0000 |
commit | beb1f1c28adc9872b179a2169e4f8d34adf125c7 (patch) | |
tree | 86dbd13e3ef6365d0e28fe4d23de7c6b7828f692 /src/components/ui/InfoBar.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/ui/InfoBar.tsx')
-rw-r--r-- | src/components/ui/InfoBar.tsx | 7 |
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'; | |||
8 | import Loader from './loader/index'; | 8 | import Loader from './loader/index'; |
9 | import Appear from './effects/Appear'; | 9 | import Appear from './effects/Appear'; |
10 | import Icon from './icon'; | 10 | import Icon from './icon'; |
11 | import { DEFAULT_LOADER_COLOR } from '../../config'; | ||
11 | 12 | ||
12 | const messages = defineMessages({ | 13 | const 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> |