teamdigitale/italia-app

View on GitHub
ts/components/wallet/WalletHomeHeader.tsx

Summary

Maintainability
A
3 hrs
Test Coverage

Function useWalletHomeHeaderBottomSheet has 42 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export const useWalletHomeHeaderBottomSheet = (): IOBottomSheetModal => {
  const navigationListItems: ReadonlyArray<NavigationListItem> = [
    {
      title: I18n.t("wallet.paymentMethod"),
      testId: "wallet.paymentMethod",
Severity: Minor
Found in ts/components/wallet/WalletHomeHeader.tsx - About 1 hr to fix

    Function WalletHomeHeader has 37 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    const WalletHomeHeader = () => {
      const { present, bottomSheet } = useWalletHomeHeaderBottomSheet();
    
      return (
        <View
    Severity: Minor
    Found in ts/components/wallet/WalletHomeHeader.tsx - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status