All files / src/pages/AcquirerPortal/AcquirerSettings nestedRoutes.tsx

100% Statements 3/3
100% Branches 0/0
100% Functions 1/1
100% Lines 3/3

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44                3x 24x                                                               24x    
import {
  HomeIcon,
  PeopleIcon as RebrandedPeopleIcon,
} from "@assets/icons/RebrandedIcons";
import { LegalDocIcon } from "@assets/rebrandIcons";
import { SettingsMenuListItem } from "@customTypes/data.types";
import { ACQUIRER_PATHS } from "@routes/paths";
 
export const useNestedRoutes = () => {
  const nestedRoutes: SettingsMenuListItem[] = [
    {
      name: "Business Details",
      path: ACQUIRER_PATHS.BUSINESS_DETAILS,
      icon: <HomeIcon />,
    },
    {
      name: "Team",
      path: ACQUIRER_PATHS.MANAGE_TEAM,
      icon: <RebrandedPeopleIcon />,
    },
 
    {
      name: "Acquirer Revenue",
      path: ACQUIRER_PATHS.ACQUIRER_REVENUE,
    },
    {
      name: "Merchant Category Codes",
      path: ACQUIRER_PATHS.MERCHANT_CATEGORY_CODES,
    },
 
    {
      name: "Legal Documents",
      path: ACQUIRER_PATHS.LEGAL_DOCUMENTS,
      icon: <LegalDocIcon />,
    },
    {
      name: "Security",
      path: ACQUIRER_PATHS.SECURITY,
    },
  ];
 
  return nestedRoutes;
};