removed fixes

This commit is contained in:
Polaris
2024-08-24 12:20:33 -04:00
parent 7e0d9a1023
commit bdcd73f91e
2 changed files with 14 additions and 12 deletions

View File

@ -119,15 +119,17 @@ export const MapIconCustomization: FC<SystemVoiceSelectionProps> = ({
return (
<main className="flex flex-col items-center space-y-6">
<div className="flex w-full justify-center">
{Object.entries(MapIconTextures).map(([key, { src }]) => (
<div key={key}>
<img
className="w-[100px]"
src={src}
alt={mapIconId ? `Map Icon ${mapIconId}` : "Default Map Icon"}
/>
</div>
))}
<div className="">
{Object.entries(MapIconTextures).map(([key, { src }]) => (
<div key={key}>
<img
className="w-[100px]"
src={src}
alt={mapIconId ? `Map Icon ${mapIconId}` : "Default Map Icon"}
/>
</div>
))}
</div>
</div>
<Form {...form}>
<form onSubmit={form.handleSubmit(onSubmit)} className="space-y-6">
@ -150,7 +152,7 @@ export const MapIconCustomization: FC<SystemVoiceSelectionProps> = ({
>
{field.value
? playerMapIconCustomization.mapIcon.find(
(part) => part.id === Number(field.value),
(part) => part.id === field.value,
)?.str
: "Select Map Icon"}
<ChevronsUpDown className="ml-2 h-4 w-4 shrink-0 opacity-50" />
@ -173,7 +175,7 @@ export const MapIconCustomization: FC<SystemVoiceSelectionProps> = ({
<Check
className={cn(
"mr-2 h-4 w-4",
part.id === Number(field.value)
part.id === field.value
? "opacity-100"
: "opacity-0",
)}