@@ -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)
@@ -104,15 +105,25 @@ fun SendAmountScreen(
104105 )
105106 }
106107 }
107- HorizontalDivider ()
108108
109109 Spacer (modifier = Modifier .weight(1f ))
110110
111+ HorizontalDivider (modifier = Modifier .padding(vertical = 32 .dp))
112+
113+ Keyboard (
114+ onClick = { number -> onEvent(SendEvent .AmountChange (number)) },
115+ isDecimal = false , // TODO UPDATE IN OTHER PR
116+ modifier = Modifier .fillMaxWidth(),
117+ )
118+
119+ Spacer (modifier = Modifier .height(41 .dp))
120+
111121 PrimaryButton (
112122 text = stringResource(R .string.continue_button),
113123 enabled = uiState.isAmountInputValid,
114124 onClick = { onEvent(SendEvent .AmountContinue (uiState.amountInput)) },
115125 )
126+
116127 Spacer (modifier = Modifier .height(16 .dp))
117128 }
118129 }
0 commit comments