diff --git a/src/app/[name]/(Main)/components/CategoryScroll.tsx b/src/app/[name]/(Main)/components/CategoryScroll.tsx index bee80b3..ed8652b 100644 --- a/src/app/[name]/(Main)/components/CategoryScroll.tsx +++ b/src/app/[name]/(Main)/components/CategoryScroll.tsx @@ -7,6 +7,9 @@ import HorizontalScrollView from "@/components/listview/HorizontalScrollView"; import clsx from "clsx"; import { usePathname } from "next/navigation"; +/** TODO: remove when backend sends avatarRenderMode */ +const COLORED_SVG_RESTAURANT_SLUGS = new Set(["havasone"]); + const SVG_MASK_STYLE = { maskSize: "contain", maskRepeat: "no-repeat", @@ -20,16 +23,17 @@ function CategoryImage({ src, size, alt, - // proxyBase, + tintWithPrimary = true, }: { src: string; size: number; alt: string; - // proxyBase: string | null; + tintWithPrimary?: boolean; }) { const isSvg = src.endsWith(".svg"); + const shouldUseSvgMask = isSvg && tintWithPrimary; - if (isSvg) { + if (shouldUseSvgMask) { return (
); - - return ( - // eslint-disable-next-line @next/next/no-img-element -