SyntaxUI / syntaxui

Get free access to pre-built, Tailwind CSS-powered components, animations and effects - brought to life using Framer Motion. Just copy, paste and you're ready to go!
https://syntaxui.com
MIT License
636 stars 45 forks source link

[BUG]: error in code - badges #124

Closed Akshaypmna18 closed 2 months ago

Akshaypmna18 commented 2 months ago

Description 📝

const newKeywords = keywords.filter((_, index) => index !== indexToRemove) setKeywords(newKeywords) onKeywordsChange(newKeywords) }

Link 🔗

https://syntaxui.com/docs/components/input

Steps to Reproduce 🔄

1

Screenshots 📸

Untitled

Expected Behavior 🤔

const newKeywords = keywords.filter((_, index) => index !== indexToRemove); setKeywords(newKeywords); onKeywordsChange(newKeywords);

Actual Behavior 😱

const newKeywords = keywords.filter((_, index) => index !== indexToRemove); setKeywords(newKeywords); onKeywordsChange(newKeywords);

Environment 🌍

-

Additional Information ℹī¸

No response

Ansub commented 2 months ago

Hello @Akshaypmna18, I'm a little confused because the Expected Behavior and Actual Behavior have the same code.

Akshaypmna18 commented 2 months ago

Hello @Akshaypmna18, I'm a little confused because the Expected Behavior and Actual Behavior have the same code.

Sorry about that it is only visible in the markdown idk why. But you can check the screenshot

Akshaypmna18 commented 2 months ago

Screenshot_2024-05-02-21-58-19-638_com.github.android.jpg

In the markdown

Ansub commented 2 months ago

thanks, gotcha i will have a look at this

Akshaypmna18 commented 2 months ago

Screenshot_2024-05-02-21-59-37-547_com.brave.browser.jpg

The '\' need to be removed

epoll31 commented 2 months ago

@Ansub should we close this?

Ansub commented 2 months ago

yeah it's fixed now