diff --git a/packages/nextjs/components/NetworksDropdown/CustomOption.tsx b/packages/nextjs/components/NetworksDropdown/CustomOption.tsx index 3b231ce5..ecaefa2f 100644 --- a/packages/nextjs/components/NetworksDropdown/CustomOption.tsx +++ b/packages/nextjs/components/NetworksDropdown/CustomOption.tsx @@ -1,12 +1,12 @@ -import Image from "next/image"; import { Options, isChainStored } from "./utils"; +import { NetworkIcon } from "@web3icons/react"; import { OptionProps, components } from "react-select"; import { EyeIcon, PlusIcon, WrenchScrewdriverIcon } from "@heroicons/react/24/outline"; const { Option } = components; -export const getIconComponent = (iconName: string | undefined) => { - switch (iconName) { +export const getIconComponent = (data: Options) => { + switch (data.icon) { case "EyeIcon": return ; case "localhost": @@ -14,7 +14,7 @@ export const getIconComponent = (iconName: string | undefined) => { case "PlusIcon": return ; default: - return default icon; + return ; } }; @@ -27,12 +27,11 @@ export const CustomOption = (props: CustomOptionProps) => { e.stopPropagation(); props.onDelete(data); }; - return (