diff --git a/src/components/card/relicCard.tsx b/src/components/card/relicCard.tsx index bbccf39..d5f1131 100644 --- a/src/components/card/relicCard.tsx +++ b/src/components/card/relicCard.tsx @@ -18,6 +18,7 @@ const getRarityColor = (rarity: string) => { default: return 'border-gray-500 shadow-gray-500/50'; } }; + const getRarityName = (slot: string) => { switch (slot) { case '1': return ( diff --git a/src/components/quickView/index.tsx b/src/components/quickView/index.tsx index 17dce0b..e3726e8 100644 --- a/src/components/quickView/index.tsx +++ b/src/components/quickView/index.tsx @@ -390,14 +390,14 @@ export default function QuickView() { return (
-
-
+
+
{Object.entries(characterStats || {})?.map(([key, stat], index) => { if (!stat || (key.includes("Add") && stat.value === 0)) return null return (
- + {stat.name}
@@ -429,7 +429,7 @@ export default function QuickView() { }} />
- {setEffect.count} + {setEffect.count}
) @@ -437,67 +437,65 @@ export default function QuickView() {
-
-
+
- {relicStats?.map((relic, index) => { - if (!relic) return null - return ( -
-
- + {relicStats?.map((relic, index) => { + if (!relic) return null + return ( +
+
+ -
- ✦✦✦✦✦ -
-
-
- - {relic?.mainAffix?.valueAffix + relic?.mainAffix?.detail?.unit} - +{relic?.mainAffix?.level} -
-
-
- {relic?.subAffix?.map((subAffix, index) => { - if (!subAffix) return null - return ( -
-
- {subAffix?.detail?.icon ? ( - - ) : ( -
- ? -
- )} - +{subAffix?.valueAffix + subAffix?.detail?.unit} -
-
- ) - })} +
+ ✦✦✦✦✦
- ) - })} - {(!relicStats || !relicStats?.length) &&
- {transI18n("noRelicEquipped")} -
} -
+
+ + {relic?.mainAffix?.valueAffix + relic?.mainAffix?.detail?.unit} + +{relic?.mainAffix?.level} +
+
+
+ {relic?.subAffix?.map((subAffix, index) => { + if (!subAffix) return null + return ( +
+
+ {subAffix?.detail?.icon ? ( + + ) : ( +
+ ? +
+ )} + +{subAffix?.valueAffix + subAffix?.detail?.unit} +
+
+ ) + })} +
+
+ ) + })} + {(!relicStats || !relicStats?.length) &&
+ {transI18n("noRelicEquipped")} +
}
)