fix icon
This commit is contained in:
@@ -4,7 +4,6 @@ import clsx from "clsx";
|
|||||||
import { motion, Variants } from "framer-motion";
|
import { motion, Variants } from "framer-motion";
|
||||||
import { Icon, SearchNormal } from "iconsax-react";
|
import { Icon, SearchNormal } from "iconsax-react";
|
||||||
import { ChevronDown } from "lucide-react";
|
import { ChevronDown } from "lucide-react";
|
||||||
import Image from "next/image";
|
|
||||||
import React, { useEffect, useRef, useState } from "react";
|
import React, { useEffect, useRef, useState } from "react";
|
||||||
|
|
||||||
export interface ComboboxOption {
|
export interface ComboboxOption {
|
||||||
@@ -87,14 +86,7 @@ function Combobox({
|
|||||||
className: "inline-block mr-1 text-primary dark:text-foreground",
|
className: "inline-block mr-1 text-primary dark:text-foreground",
|
||||||
});
|
});
|
||||||
const activeImage = selectedOption?.imagePath && (
|
const activeImage = selectedOption?.imagePath && (
|
||||||
<Image
|
<span className="icon-delivery mr-1" aria-hidden />
|
||||||
src={selectedOption.imagePath}
|
|
||||||
alt=""
|
|
||||||
width={20}
|
|
||||||
height={20}
|
|
||||||
unoptimized
|
|
||||||
className="inline-block mr-1 dark:brightness-0 dark:invert"
|
|
||||||
/>
|
|
||||||
);
|
);
|
||||||
|
|
||||||
const variants: Variants = {
|
const variants: Variants = {
|
||||||
@@ -207,10 +199,7 @@ function Combobox({
|
|||||||
aria-selected
|
aria-selected
|
||||||
>
|
>
|
||||||
{v?.imagePath ? (
|
{v?.imagePath ? (
|
||||||
<span
|
<span className="icon-delivery mr-1" aria-hidden />
|
||||||
className="icon-delivery mr-1"
|
|
||||||
aria-hidden
|
|
||||||
/>
|
|
||||||
) : (
|
) : (
|
||||||
v?.icon &&
|
v?.icon &&
|
||||||
React.createElement(v.icon, {
|
React.createElement(v.icon, {
|
||||||
|
|||||||
Reference in New Issue
Block a user