moved code to components for grid/cards added stickyfilter.astro
This commit is contained in:
@@ -26,10 +26,10 @@ const rarityMap = {
|
||||
"Double Rare": doubleRare,
|
||||
"Promo": promo,
|
||||
"Special Illustration Rare": specialIllusRare,
|
||||
"Ultra Rare": ultrarare, // Ultra Rare and Holo Rare use the same icon
|
||||
"Ultra Rare": ultrarare,
|
||||
};
|
||||
|
||||
const svg = rarityMap[rarity] ?? "";
|
||||
const svg = rarityMap[rarity as keyof typeof rarityMap] ?? "";
|
||||
---
|
||||
|
||||
<span class="rarity-icon h-100" set:html={svg}></span>
|
||||
<div class="rarity-icon" set:html={svg}></div>
|
||||
|
||||
Reference in New Issue
Block a user