Next.js Discord

Discord Forum

Dropdown not working? Don't know if the problems are related.

Unanswered
Sun bear posted this in #help-forum
Open in Discord
Sun bearOP
I have tried npm install -D tailwindcss

13 Replies

Sun bearOP
There is supposed to be a dropdown where the red circle is but it isnt working. I can't tell if this is because of the css or a seperate issue because there is .dropdown in the css.
There seems to be a red box on the bottom left of the browser page.
Sun bearOP
For this error, you've misconfigured next auth and I don't think its related to dropdown issue
https://ui.shadcn.com/docs/components/dropdown-menu
I recommend you to use this.

But if you prefer not to use, can you share your file in Github Gist?
If you need other stuff just lmk
@Sun bear Click to see attachment
Wait, I took a closer look at your code and realised that it is happening because isUserLoggedIn is always false
because there is a next auth error
Sun bearOP
I honestly don't understand what that means
your isUserLoggedIn is always false. And the logo inside the condition is not rendering.