fixed mapicon not changing

This commit is contained in:
Polaris 2024-08-21 15:32:15 -04:00
parent 2b39007779
commit 3a81a54621
2 changed files with 4 additions and 4 deletions

View File

@ -108,7 +108,7 @@ export const MapIconCustomization: FC<SystemVoiceSelectionProps> = ({
mapIconId: {
src: mapIconId
? getTexture(
mapIconId, // Use mapIconId directly
form.watch("mapIconId"),
`mapIcon/CHU_UI_MapIcon_${mapIconId.toString().padStart(8, "0")}.png`,
)
: `systemVoiceThumbnails/CHU_UI_SystemVoice_Default.png`,
@ -123,7 +123,7 @@ export const MapIconCustomization: FC<SystemVoiceSelectionProps> = ({
<div>
<img
className="w-[100px]"
src={MapIconTextures.mapIconId.src}
src={src}
alt={mapIconId ? `Map Icon ${mapIconId}` : "Default Map Icon"}
/>{" "}
</div>

View File

@ -34,12 +34,12 @@ export const ChunithmHotPlays: FC<ChunithmProfileHotPlays> = ({
);
return (
<div key={index} className="flex flex-col items-center p-2">
<div className="m-4 font-bold"></div>
<div className="font-bold"></div>
{jacketPath && (
<img
src={`/jacketArts/${jacketPath}`}
alt="Jacket"
style={{ width: "120px", height: "120px" }}
className="h-28 w-28"
/>
)}
<div>