From 18ded75f0ae9b30e6a5892688ebecdbf6f90c18a Mon Sep 17 00:00:00 2001 From: Roman Simionov Date: Tue, 28 Jul 2020 13:15:16 +0300 Subject: [PATCH] CheckBox: Use constant object for InkRiple config instead of function (#14009) --- js/renovation/ui/check_box.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/js/renovation/ui/check_box.tsx b/js/renovation/ui/check_box.tsx index ab6aceb0997c..b3a62ebc6d83 100644 --- a/js/renovation/ui/check_box.tsx +++ b/js/renovation/ui/check_box.tsx @@ -39,12 +39,12 @@ const getCssClasses = (model: CheckBoxProps): string => { return combineClasses(classesMap); }; -const inkRippleConfig = (): InkRippleConfig => ({ +const inkRippleConfig: InkRippleConfig = { waveSizeCoefficient: 2.5, useHoldAnimation: false, wavesNumber: 2, isCentered: true, -}); +}; export const viewFunction = (viewModel: CheckBox): JSX.Element => { const { text, name } = viewModel.props; @@ -82,7 +82,7 @@ export const viewFunction = (viewModel: CheckBox): JSX.Element => { {text && ({text})} {viewModel.props.useInkRipple - && } + && } ); };