From 1753550b62e7b491e6e5ced701102710f4dddb06 Mon Sep 17 00:00:00 2001 From: suwonthugger <127329855+suwonthugger@users.noreply.github.com> Date: Sun, 10 Nov 2024 00:07:03 +0900 Subject: [PATCH] =?UTF-8?q?[Common]=20[HOTFIX]=20=EB=B9=8C=EB=93=9C=20?= =?UTF-8?q?=EC=97=90=EB=9F=AC=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../[userId]/_components/SVGTier/SVGTier.tsx | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/apps/mobile/src/app/user/[userId]/_components/SVGTier/SVGTier.tsx b/apps/mobile/src/app/user/[userId]/_components/SVGTier/SVGTier.tsx index c4fdbe7..febc647 100644 --- a/apps/mobile/src/app/user/[userId]/_components/SVGTier/SVGTier.tsx +++ b/apps/mobile/src/app/user/[userId]/_components/SVGTier/SVGTier.tsx @@ -1,16 +1,16 @@ import { SVGAttributes, FC } from 'react'; +import Tier1LargeIcon from '@/shared/assets/svgs/tier/Lg/tier_1.svg'; +import Tier2LargeIcon from '@/shared/assets/svgs/tier/Lg/tier_2.svg'; +import Tier3LargeIcon from '@/shared/assets/svgs/tier/Lg/tier_3.svg'; +import Tier4LargeIcon from '@/shared/assets/svgs/tier/Lg/tier_4.svg'; +import Tier5LargeIcon from '@/shared/assets/svgs/tier/Lg/tier_5.svg'; +import Tier6LargeIcon from '@/shared/assets/svgs/tier/Lg/tier_6.svg'; import Tier1DefaultIcon from '@/shared/assets/svgs/tier/default/tier_1.svg'; import Tier2DefaultIcon from '@/shared/assets/svgs/tier/default/tier_2.svg'; import Tier3DefaultIcon from '@/shared/assets/svgs/tier/default/tier_3.svg'; import Tier4DefaultIcon from '@/shared/assets/svgs/tier/default/tier_4.svg'; import Tier5DefaultIcon from '@/shared/assets/svgs/tier/default/tier_5.svg'; import Tier6DefaultIcon from '@/shared/assets/svgs/tier/default/tier_6.svg'; -import Tier1LargeIcon from '@/shared/assets/svgs/tier/lg/tier_1.svg'; -import Tier2LargeIcon from '@/shared/assets/svgs/tier/lg/tier_2.svg'; -import Tier3LargeIcon from '@/shared/assets/svgs/tier/lg/tier_3.svg'; -import Tier4LargeIcon from '@/shared/assets/svgs/tier/lg/tier_4.svg'; -import Tier5LargeIcon from '@/shared/assets/svgs/tier/lg/tier_5.svg'; -import Tier6LargeIcon from '@/shared/assets/svgs/tier/lg/tier_6.svg'; import Tier1SmallIcon from '@/shared/assets/svgs/tier/sm/tier_1.svg'; import Tier2SmallIcon from '@/shared/assets/svgs/tier/sm/tier_2.svg'; import Tier3SmallIcon from '@/shared/assets/svgs/tier/sm/tier_3.svg'; @@ -20,7 +20,7 @@ import Tier6SmallIcon from '@/shared/assets/svgs/tier/sm/tier_6.svg'; import { TierTypes } from '../profile/types'; interface SVGTierProps extends SVGAttributes { - size?: 'default' | 'sm' | 'lg'; + size?: 'default' | 'sm' | 'Lg'; tier?: TierTypes; } @@ -33,7 +33,7 @@ const defaultComponent: Record>> = { PURPLE: Tier6DefaultIcon, }; -const lgComponent: Record>> = { +const LgComponent: Record>> = { YELLOW: Tier1LargeIcon, GREEN: Tier2LargeIcon, BLUE: Tier3LargeIcon, @@ -59,8 +59,8 @@ const SVGTier = ({ const TierComponent = size === 'default' ? defaultComponent[tier] - : size === 'lg' - ? lgComponent[tier] + : size === 'Lg' + ? LgComponent[tier] : smComponent[tier]; if (!TierComponent) {