- send button disable/enable logic - `clear` button of the address field removed
This commit is contained in:
parent
6c77e0901b
commit
effa4b304a
|
@ -48,6 +48,8 @@ struct CreateTransaction: View {
|
|||
label: { Text(L10n.General.send) }
|
||||
)
|
||||
.activeButtonStyle
|
||||
.disabled(viewStore.isValidForm)
|
||||
.opacity(viewStore.isValidForm ? 1.0 : 0.5)
|
||||
|
||||
Spacer()
|
||||
}
|
||||
|
|
|
@ -21,20 +21,8 @@ struct TransactionAddressTextField: View {
|
|||
state: \.textFieldState,
|
||||
action: TransactionAddressTextFieldReducer.Action.textField
|
||||
),
|
||||
titleAccessoryView: {
|
||||
if !viewStore.textFieldState.text.data.isEmpty {
|
||||
Button(
|
||||
action: {
|
||||
viewStore.send(.clearAddress)
|
||||
},
|
||||
label: {
|
||||
Text(L10n.General.clear)
|
||||
}
|
||||
)
|
||||
.textFieldTitleAccessoryButtonStyle
|
||||
}
|
||||
},
|
||||
inputPrefixView: { EmptyView() },
|
||||
titleAccessoryView: { },
|
||||
inputPrefixView: { },
|
||||
inputAccessoryView: {
|
||||
Button {
|
||||
viewStore.send(.scanQR)
|
||||
|
|
Loading…
Reference in New Issue