removed fixes
This commit is contained in:
@ -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",
|
||||
)}
|
||||
|
Reference in New Issue
Block a user