styled userbox page and removed sticky nav

This commit is contained in:
Polaris
2024-07-28 01:10:53 -04:00
parent de16235316
commit e113bad219
8 changed files with 53 additions and 42 deletions

View File

@ -87,7 +87,9 @@ export const TrophyCustomization: FC<AvatarSelectionProps> = ({
}
return (
<main className="flex">
<main className="flex flex-col items-center space-y-6">
{/* Avatar Customization Section */}
<div>
<Form {...form}>
<form onSubmit={form.handleSubmit(onSubmit)} className="space-y-6">
@ -105,12 +107,12 @@ export const TrophyCustomization: FC<AvatarSelectionProps> = ({
role="combobox"
className={cn(
"w-[300px] justify-between",
!field.value && "text-muted-foreground"
!field.value && "text-muted-foreground",
)}
>
{field.value
? playerTrophySelectionData.statictrophies.find(
(part) => part.id === field.value
(part) => part.id === field.value,
)?.str
: "Select Trophy"}
<ChevronsUpDown className="ml-2 h-4 w-4 shrink-0 opacity-50" />
@ -136,12 +138,12 @@ export const TrophyCustomization: FC<AvatarSelectionProps> = ({
"mr-2 h-4 w-4",
part.id === field.value
? "opacity-100"
: "opacity-0"
: "opacity-0",
)}
/>
{part.str}
</CommandItem>
)
),
)}
</CommandGroup>
</CommandList>