added chunithm version selector in admin settings

This commit is contained in:
Polaris
2024-08-20 16:49:01 -04:00
parent 552f737650
commit d6629a72eb
37 changed files with 614 additions and 107 deletions

View File

@ -76,8 +76,8 @@ export const TrophyCustomization: FC<AvatarSelectionProps> = ({
}, []);
function onSubmit(data: z.infer<typeof FormSchema>) {
const unchangedNamePlateId = trophyID;
const newNamePlateId = data.trophies ?? unchangedNamePlateId;
const defaultNamePlateId = trophyID;
const newNamePlateId = data.trophies ?? defaultNamePlateId;
updatePlayerTrophy(newNamePlateId).then(() => {
setTrophyId(newNamePlateId);
@ -112,7 +112,7 @@ export const TrophyCustomization: FC<AvatarSelectionProps> = ({
name="trophies"
render={({ field }) => (
<FormItem className="flex flex-col">
<FormLabel>Select Trophy</FormLabel>
<FormLabel className="pb-2">Select Trophy</FormLabel>
<Popover>
<PopoverTrigger asChild>
<FormControl>