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/ui/button/index.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/button/index.tsx')
-rw-r--r-- | src/components/ui/button/index.tsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/components/ui/button/index.tsx b/src/components/ui/button/index.tsx index a2194e34d..3247072a9 100644 --- a/src/components/ui/button/index.tsx +++ b/src/components/ui/button/index.tsx | |||
@@ -8,6 +8,7 @@ import withStyles, { WithStylesProps } from 'react-jss'; | |||
8 | import Loader from '../loader/index'; | 8 | import Loader from '../loader/index'; |
9 | import { Theme } from '../../../themes'; | 9 | import { Theme } from '../../../themes'; |
10 | import { IFormField } from '../typings/generic'; | 10 | import { IFormField } from '../typings/generic'; |
11 | import { DEFAULT_LOADER_COLOR } from '../../../config'; | ||
11 | 12 | ||
12 | type ButtonType = | 13 | type ButtonType = |
13 | | 'primary' | 14 | | 'primary' |
@@ -194,7 +195,7 @@ class ButtonComponent extends Component<IProps, IState> { | |||
194 | <> | 195 | <> |
195 | {showLoader && ( | 196 | {showLoader && ( |
196 | <div className={classes.loaderContainer}> | 197 | <div className={classes.loaderContainer}> |
197 | <Loader size={18} color="#FFFFFF" /> | 198 | <Loader size={18} color={DEFAULT_LOADER_COLOR} /> |
198 | </div> | 199 | </div> |
199 | )} | 200 | )} |
200 | <div className={classes.label}> | 201 | <div className={classes.label}> |