Open nidhi752 opened 1 month ago
@nidhi752 is attempting to deploy a commit to the farisfaikar's projects Team on Vercel.
A member of the Team first needs to authorize it.
Hi, as you can see, this is a tsx file. Without passing toggleTheme and currentTheme from RootLayout to Navbar it'll not work. Navbar component expects toggleTheme and currentTheme props to be passed in, but they are not here when the Navbar is called in the code. To fix this issue, we need to make sure that the toggleTheme and currentTheme props are correctly passed from the RootLayout to the Navbar component.
Yes, can you perhaps move the logic into the Navbar component instead? Also, I'm sorry, but your reply doesn't sound right. Are you using AI to generate the reply?
I am not not using it to generate anything. I simply addressed the issue as it was. I'm attempting to move it into the navbar as a whole, but I'm encountering errors. I'll try it again tho.
12
Added the feature for switching between light mode and dark mode