fix : fix export image not like the actual
This commit is contained in:
@@ -20,6 +20,12 @@ const rarityTextClasses: Record<number, string> = {
|
||||
5: "text-[#A67B34]",
|
||||
};
|
||||
|
||||
const rarityTextColors: Record<number, string> = {
|
||||
3: "#4D7691",
|
||||
4: "#6D6A9C",
|
||||
5: "#A67B34",
|
||||
};
|
||||
|
||||
export function rarityGradientClass(rarity: number | null | undefined): string | undefined {
|
||||
return rarity ? rarityGradientClasses[rarity] : undefined;
|
||||
}
|
||||
@@ -31,3 +37,7 @@ export function rarityGradient(rarity: number | null | undefined): string {
|
||||
export function rarityTextClass(rarity: number | null | undefined): string | undefined {
|
||||
return rarity ? rarityTextClasses[rarity] : undefined;
|
||||
}
|
||||
|
||||
export function rarityTextColor(rarity: number | null | undefined): string {
|
||||
return (rarity && rarityTextColors[rarity]) || "#17171c";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user