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

@ -90,7 +90,7 @@ export async function getMapIcons() {
const currentlyUnlockedMapIcons = Array.from(
new Map(
AllMapIcons.filter((matchingMapIconIds) =>
unlockedMapIcons.includes(Number(matchingMapIconIds.id)),
unlockedMapIcons.includes(matchingMapIconIds.id),
).map((unlockedMapIconIds) => [
unlockedMapIconIds.id,
unlockedMapIconIds,

View File

@ -119,6 +119,7 @@ export const MapIconCustomization: FC<SystemVoiceSelectionProps> = ({
return (
<main className="flex flex-col items-center space-y-6">
<div className="flex w-full justify-center">
<div className="">
{Object.entries(MapIconTextures).map(([key, { src }]) => (
<div key={key}>
<img
@ -129,6 +130,7 @@ export const MapIconCustomization: FC<SystemVoiceSelectionProps> = ({
</div>
))}
</div>
</div>
<Form {...form}>
<form onSubmit={form.handleSubmit(onSubmit)} className="space-y-6">
<FormField
@ -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",
)}