Next.js Discord

Discord Forum

Dropdown not working

Unanswered
Black Phoebe posted this in #help-forum
Open in Discord
Black PhoebeOP
          {user !== null ? (
            <DropdownMenu>
              <DropdownMenuTrigger>
                <Avatar>
                  <AvatarFallback>{user.username.charAt(0)}</AvatarFallback>
                </Avatar>
              </DropdownMenuTrigger>
              <DropdownMenuContent align="end" className="w-56">
                <DropdownMenuLabel>
                  <span className="font-semibold">
                    {`${user.first_name} ${user.last_name}`}
                  </span>
                </DropdownMenuLabel>
                <DropdownMenuSeparator />
                <Link href="/account">
                  <DropdownMenuItem className="cursor-pointer">
                    Account
                  </DropdownMenuItem>
                </Link>
                <DropdownMenuItem>
                  <SignOutBtn />
                </DropdownMenuItem>
              </DropdownMenuContent>
            </DropdownMenu>
          ) : (
            <Link href="/sign-in">Sign in</Link>
          )}


When I click on the avatar nothing happens

1 Reply

Black PhoebeOP
every dropdown doesnt work in my application, I reinstalled the components but didn't help