farisfaikar / wayry

WAYRY (Short for Why Are You Repeating Yourself) is an app where you can track the speech patterns of a person!
https://wayry.vercel.app
MIT License
5 stars 9 forks source link

Added light mode & dark mode #16

Open nidhi752 opened 1 month ago

nidhi752 commented 1 month ago

12

Added the feature for switching between light mode and dark mode

vercel[bot] commented 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.

nidhi752 commented 1 month ago

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.

farisfaikar commented 1 month ago

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?

nidhi752 commented 1 month ago

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.