teamdigitale/italia-app

View on GitHub
ts/features/payments/checkout/screens/WalletPaymentConfirmScreen.tsx

Summary

Maintainability
C
1 day
Test Coverage

Function WalletPaymentConfirmScreen has 124 lines of code (exceeds 25 allowed). Consider refactoring.
Open

const WalletPaymentConfirmScreen = () => {
  const navigation = useIONavigation();

  const paymentDetailsPot = useIOSelector(walletPaymentDetailsSelector);
  const transactionPot = useIOSelector(walletPaymentTransactionSelector);
Severity: Major
Found in ts/features/payments/checkout/screens/WalletPaymentConfirmScreen.tsx - About 4 hrs to fix

    File WalletPaymentConfirmScreen.tsx has 263 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    import {
      Body,
      GradientScrollView,
      LabelLink,
      ListItemHeader,
    Severity: Minor
    Found in ts/features/payments/checkout/screens/WalletPaymentConfirmScreen.tsx - About 2 hrs to fix

      Function SelectedPaymentMethodModuleCheckout has 40 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      const SelectedPaymentMethodModuleCheckout = () => {
        const dispatch = useIODispatch();
      
        const selectedWalletOption = useIOSelector(
          walletPaymentSelectedWalletOptionSelector

        Function SelectedPspModuleCheckout has 26 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        const SelectedPspModuleCheckout = () => {
          const dispatch = useIODispatch();
        
          const pspListPot = useIOSelector(walletPaymentPspListSelector);
          const selectedPspOption = useIOSelector(walletPaymentSelectedPspSelector);

          There are no issues that match your filters.

          Category
          Status