@@ -16,9 +16,11 @@ import { COLORS } from '../styles/themes';
16
16
*
17
17
* @param {Object } props
18
18
* @param {string } [props.value] - Initial input value
19
- * @param {Function } props.onAmountUpdate - Callback when amount changes: (text, bigIntValue) => void
20
- * where text is the formatted string and bigIntValue is the parsed BigInt
21
- * @param {boolean } [props.allowOnlyInteger=false] - If true, only allow integer values (no decimals)
19
+ * @param {Function } props.onAmountUpdate - Callback when amount changes:
20
+ * (text, bigIntValue) => void where text is the
21
+ * formatted string and bigIntValue is the parsed BigInt
22
+ * @param {boolean } [props.allowOnlyInteger=false] - If true, only allow integer values
23
+ * (no decimals)
22
24
* @param {Object } [props.style] - Additional styles for the TextInput
23
25
* @param {boolean } [props.autoFocus] - Whether the input should be focused on mount
24
26
* @param {number } [props.decimalPlaces] - Number of decimal places to use (optional)
@@ -28,8 +30,9 @@ import { COLORS } from '../styles/themes';
28
30
const AmountTextInput = forwardRef ( ( props , ref ) => {
29
31
const inputRef = useRef ( null ) ;
30
32
const [ text , setText ] = useState ( props . value || '' ) ;
31
- const decimalPlaces = props . decimalPlaces == null ?
32
- constants . DECIMAL_PLACES : props . decimalPlaces ;
33
+ const decimalPlaces = props . decimalPlaces == null
34
+ ? constants . DECIMAL_PLACES
35
+ : props . decimalPlaces ;
33
36
34
37
// Expose the focus method to parent components
35
38
useImperativeHandle ( ref , ( ) => ( {
0 commit comments