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/ui/button/index.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/components/ui/button') 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'; import Loader from '../loader/index'; import { Theme } from '../../../themes'; import { IFormField } from '../typings/generic'; +import { DEFAULT_LOADER_COLOR } from '../../../config'; type ButtonType = | 'primary' @@ -194,7 +195,7 @@ class ButtonComponent extends Component { <> {showLoader && (
- +
)}
-- cgit v1.2.3-70-g09d2