diff --git a/src/components/numberSelector/NumberSelector.tsx b/src/components/numberSelector/NumberSelector.tsx index f068703c..e1d633c8 100644 --- a/src/components/numberSelector/NumberSelector.tsx +++ b/src/components/numberSelector/NumberSelector.tsx @@ -9,17 +9,13 @@ export interface Props { validator: NumberValidator; initialValue: number | undefined; value: number | undefined; - onValueChange?: (value: number) => void; onEndEditing: (value: string | undefined) => void; - minValue: number; - maxValue: number; style?: ViewStyle; minusIcon?: IconName; plusIcon?: IconName; showSoftInputOnFocus?: boolean; variant?: 'filled' | 'outlined'; size?: 'm' | 's'; - decimal?: boolean; placeholder?: string; incrementStep?: number; decrementStep?: number; @@ -28,6 +24,7 @@ export interface Props { export const RoundValue = (val: number): number => { return Math.round(val * 10) / 10; }; + export const ComputeCrementedValue = ( value: number, step: number,