@@ -24,6 +24,7 @@ import androidx.compose.ui.text.input.KeyboardType
2424import androidx.compose.ui.unit.dp
2525import to.bitkit.R
2626import to.bitkit.ui.LocalBalances
27+ import to.bitkit.ui.components.Keyboard
2728import to.bitkit.ui.components.OutlinedColorButton
2829import to.bitkit.ui.components.PrimaryButton
2930import to.bitkit.ui.components.Text13Up
@@ -56,14 +57,14 @@ fun SendAmountScreen(
5657 val focusRequester = remember { FocusRequester () }
5758 LaunchedEffect (Unit ) { focusRequester.requestFocus() }
5859
59- TextField (
60+ TextField ( // TODO UPDATE IN OTHER PR
6061 placeholder = { Text (stringResource(R .string.amount_placeholder)) },
62+ readOnly = true ,
6163 value = uiState.amountInput,
62- onValueChange = { onEvent( SendEvent . AmountChange (it)) },
64+ onValueChange = { },
6365 colors = AppTextFieldDefaults .noIndicatorColors,
6466 shape = MaterialTheme .shapes.small,
6567 singleLine = true ,
66- keyboardOptions = KeyboardOptions (keyboardType = KeyboardType .Number ),
6768 modifier = Modifier
6869 .fillMaxWidth()
6970 .focusRequester(focusRequester)
@@ -108,11 +109,20 @@ fun SendAmountScreen(
108109
109110 Spacer (modifier = Modifier .weight(1f ))
110111
112+ Keyboard (
113+ onClick = { number -> onEvent(SendEvent .AmountChange (uiState.amountInput + number)) },
114+ isDecimal = false , // TODO UPDATE IN OTHER PR
115+ modifier = Modifier .fillMaxWidth(),
116+ )
117+
118+ Spacer (modifier = Modifier .height(16 .dp))
119+
111120 PrimaryButton (
112121 text = stringResource(R .string.continue_button),
113122 enabled = uiState.isAmountInputValid,
114123 onClick = { onEvent(SendEvent .AmountContinue (uiState.amountInput)) },
115124 )
125+
116126 Spacer (modifier = Modifier .height(16 .dp))
117127 }
118128 }
0 commit comments