From 6d420d758a4a8267223d8caf2e97de78aa2d598e Mon Sep 17 00:00:00 2001 From: sumi-0011 Date: Wed, 25 Dec 2024 19:07:31 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=EC=9D=B4=EB=B2=A4=ED=8A=B8=20=ED=8E=98?= =?UTF-8?q?=EB=A5=B4=EC=86=8C=EB=82=98=20=EC=A7=80=EC=A0=95=20(=ED=81=AC?= =?UTF-8?q?=EB=A6=AC=EC=8A=A4=EB=A7=88=EC=8A=A4)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../[locale]/shop/AuctionSection/PersonaSearch.tsx | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/apps/web/src/app/[locale]/shop/AuctionSection/PersonaSearch.tsx b/apps/web/src/app/[locale]/shop/AuctionSection/PersonaSearch.tsx index 15b098f2..6b629950 100644 --- a/apps/web/src/app/[locale]/shop/AuctionSection/PersonaSearch.tsx +++ b/apps/web/src/app/[locale]/shop/AuctionSection/PersonaSearch.tsx @@ -13,6 +13,17 @@ import { LoaderIcon, SearchIcon, XIcon } from 'lucide-react'; import { getPersonaImage } from '@/utils/image'; const EVENT = { + CHRISTMAS: { + label: 'Christmas 2024 🎄', + personaTypeList: [ + 'SNOWMAN', + 'DESSERT_FOX_RUDOLPH', + 'LITTLE_CHICK_SANTA', + 'RABBIT_BROWN_RUDOLPH', + 'SNOWMAN_MELT', + 'HAMSTER_SANTA', + ], + }, HALLOWEEN: { label: 'Halloween 2024 🎃', personaTypeList: ['SLIME_PUMPKIN_1', 'SLIME_PUMPKIN_2', 'GHOST', 'GHOST_KING', 'SCREAM', 'SCREAM_GHOST'], @@ -46,7 +57,7 @@ export const PersonaSearch = wrap const { data } = useSuspenseQuery(auctionQueries.productTypesOptions()); - const eventPersonaTypeList = EVENT.HALLOWEEN.personaTypeList; + const eventPersonaTypeList = Object.values(EVENT).flatMap((event) => event.personaTypeList); const filteredPersonaTypeList = data?.productTypes.filter((type) => !eventPersonaTypeList.includes(type.name)); const onClick = (personaType: string) => {