diff --git a/components/(customization)/mapiconcustomization/page.tsx b/components/(customization)/mapiconcustomization/page.tsx index f525f86..4eb2e45 100644 --- a/components/(customization)/mapiconcustomization/page.tsx +++ b/components/(customization)/mapiconcustomization/page.tsx @@ -68,7 +68,7 @@ export const MapIconCustomization: FC = ({ form.setValue("mapIconId", data[0].mapIconId as number); } } catch (error) { - console.error("Error fetching avatar parts:", error); + console.error("Error fetching map icons:", error); } }; diff --git a/components/(customization)/nameplatecustomization/page.tsx b/components/(customization)/nameplatecustomization/page.tsx index 56a8e89..fc58bea 100644 --- a/components/(customization)/nameplatecustomization/page.tsx +++ b/components/(customization)/nameplatecustomization/page.tsx @@ -41,18 +41,18 @@ const getNamePlateTextures = (id: number | undefined) => { type player_nameplates = cozynet_chuni_static_nameplate; -type AvatarSelectionProps = { +type NamePlateSelectionProps = { playerNamePlateSelectionData: { namePlates: player_nameplates[]; }; }; -export const NameplateCustomization: FC = ({ +export const NameplateCustomization: FC = ({ playerNamePlateSelectionData, }) => { const FormSchema = z.object({ nameplateId: z.number({ - required_error: "Please select an Avatar Head Item.", + required_error: "Please select an NamePlate Head Item.", }), }); @@ -70,7 +70,7 @@ export const NameplateCustomization: FC = ({ form.setValue("nameplateId", data[0].nameplateId as number); } } catch (error) { - console.error("Error fetching avatar parts:", error); + console.error("Error fetching NamePlate parts:", error); } }; diff --git a/components/(customization)/systemvoicecustomization/page.tsx b/components/(customization)/systemvoicecustomization/page.tsx index 242daac..1a3fdf8 100644 --- a/components/(customization)/systemvoicecustomization/page.tsx +++ b/components/(customization)/systemvoicecustomization/page.tsx @@ -1,7 +1,6 @@ "use client"; import React, { FC, useEffect, useState } from "react"; -import { chuni_static_avatar } from "@/prisma/schemas/artemis/generated/artemis"; import { Check, ChevronsUpDown } from "lucide-react"; import { cn } from "@/lib/utils"; import { Button } from "@/components/ui/button"; @@ -31,11 +30,7 @@ import { useForm } from "react-hook-form"; import { zodResolver } from "@hookform/resolvers/zod"; import { toast } from "../../ui/use-toast"; import { cozynet_chuni_static_systemvoice } from "@/prisma/schemas/artemis/generated/artemis"; -import { - getCurrentSystemVoice, - getSystemVoices, - updatePlayerSystemVoiceId, -} from "./actions"; +import { getCurrentSystemVoice, updatePlayerSystemVoiceId } from "./actions"; const getNamePlateTextures = (id: number | undefined) => { if (id === undefined) return ""; diff --git a/components/(customization)/trophycustomization/page.tsx b/components/(customization)/trophycustomization/page.tsx index 2b2accd..88d18ca 100644 --- a/components/(customization)/trophycustomization/page.tsx +++ b/components/(customization)/trophycustomization/page.tsx @@ -15,7 +15,6 @@ import { import { Form, FormControl, - FormDescription, FormField, FormItem, FormLabel, @@ -32,10 +31,6 @@ import { zodResolver } from "@hookform/resolvers/zod"; import { toast } from "../../ui/use-toast"; import { getCurrentTrophies, updatePlayerTrophy } from "./actions"; import { cozynet_chuni_static_trophies } from "@/prisma/schemas/artemis/generated/artemis"; -const getAvatarTextureSrc = (id: number | undefined) => { - if (id === undefined) return ""; - return `avatarAccessory/CHU_UI_Avatar_Tex_0${id}.png`; -}; type static_trophies = cozynet_chuni_static_trophies; @@ -69,7 +64,7 @@ export const TrophyCustomization: FC = ({ form.setValue("trophies", data[0].trophyId as number); } } catch (error) { - console.error("Error fetching avatar parts:", error); + console.error("Error fetching trophies:", error); } }; @@ -135,7 +130,7 @@ export const TrophyCustomization: FC = ({ - No avatar part found. + No trophies part found. {playerTrophySelectionData.statictrophies.map( (part) => (