Skip to content

Commit

Permalink
Suppress lint error for LongMethod in PayPalButtonsView.
Browse files Browse the repository at this point in the history
  • Loading branch information
sshropshire committed Nov 13, 2023
1 parent 81d9934 commit 610c8cb
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ import com.paypal.android.paymentbuttons.PayPalCreditButtonColor
import com.paypal.android.paymentbuttons.PaymentButton
import com.paypal.android.paymentbuttons.PaymentButtonColor

@Suppress("LongMethod")
@ExperimentalMaterial3Api
@Composable
fun PayPalButtonsView(viewModel: PayPalButtonsViewModel = viewModel()) {
Expand Down Expand Up @@ -69,9 +70,7 @@ fun PayPalButtonsView(viewModel: PayPalButtonsViewModel = viewModel()) {
fundingType = uiState.fundingType,
payPalButtonColor = uiState.payPalButtonColor,
payPalCreditButtonColor = uiState.payPalCreditButtonColor,
onPayPalButtonColorChange = { value ->
viewModel.payPalButtonColor = value
},
onPayPalButtonColorChange = { value -> viewModel.payPalButtonColor = value },
onPayPalCreditButtonColorChange = { value ->
viewModel.payPalCreditButtonColor = value
}
Expand Down

0 comments on commit 610c8cb

Please sign in to comment.