File tree Expand file tree Collapse file tree 2 files changed +14
-3
lines changed
ui/components/multichain-accounts
multichain-account-network-group
multichain-address-rows-hovered-list Expand file tree Collapse file tree 2 files changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -33,9 +33,19 @@ export type MultichainAccountNetworkGroupProps = {
3333} ;
3434
3535/**
36- * A reusable component that displays a group of network avatars
37- * Can fetch networks based on account group ID or accept explicit chain IDs
38- * Handles conversion from CAIP chain IDs to hex format for EVM chains
36+ * A reusable component that displays a group of network avatars.
37+ * Can fetch networks based on account group ID or accept explicit chain IDs.
38+ * Handles conversion from CAIP chain IDs to hex format for EVM chains.
39+ *
40+ * @param props - The component props
41+ * @param props.groupId - The account group ID to fetch networks for. When provided, fetches chain IDs from the account group.
42+ * @param props.chainIds - Array of specific chain IDs to display. Behavior depends on groupId:
43+ * - If provided with groupId: shows only chains that exist in both the group and this list (intersection)
44+ * - If provided without groupId: shows only these specific chains
45+ * @param props.excludeTestNetworks - Whether to exclude test networks from display. Defaults to true.
46+ * @param props.limit - Maximum number of avatars to display before showing "+X" indicator. Defaults to 4.
47+ * @param props.className - Optional CSS class name for additional styling
48+ * @returns A React component displaying network avatars in a group
3949 */
4050export const MultichainAccountNetworkGroup : React . FC <
4151 MultichainAccountNetworkGroupProps
Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ import { getNetworksByScopes } from '../../../../shared/modules/selectors/networ
2020import { ButtonIcon , IconName } from '../../component-library' ;
2121import { IconColor } from '../../../helpers/constants/design-system' ;
2222import { MultichainAccountNetworkGroup } from '../multichain-account-network-group' ;
23+ // eslint-disable-next-line import/no-restricted-paths
2324import { normalizeSafeAddress } from '../../../../app/scripts/lib/multichain/address' ;
2425
2526type MultichainAggregatedAddressListRowProps = {
You can’t perform that action at this time.
0 commit comments