Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Potential improvement, drop classNames dependency #135

Merged
merged 1 commit into from Nov 29, 2022

Conversation

EarthlingDavey
Copy link
Contributor

Hi I think there's a potential here to drop the classNames dependency.

Here I've replaced it with:

  • add classes to an array (some will be false if conditions aren't met)
  • filter for truthy values
  • join array elements with a space

I 100% don't mind if you don't merge. I have done this work anyway for my own project.

Cheers, Davey

Hi I think there's a potential here to drop the classNames dependency. 

Here I've replaced it with:
- add classes to an array (some will be false if conditions aren't met)
- filter for truthy values
- join array elements with a space

I 100% don't mind if you don't merge. I have done this work anyway for my own project.

Cheers, Davey
@Stanko
Copy link
Owner

Stanko commented Nov 25, 2022

Hi @EarthlingDavey,
Thank you for the contribution! ATM I have some personal stuff to take care of, but I will probably merge this in the next 7-10 days. I'm always interested in dropping dependencies 🙈

Cheers!

@EarthlingDavey
Copy link
Contributor Author

EarthlingDavey commented Nov 25, 2022

Awesome, and thanks for the project BTW. I just dropped it into my app and it works 100% - will reccomend :)

@Stanko Stanko merged commit 8acddde into Stanko:v3 Nov 29, 2022
@Stanko
Copy link
Owner

Stanko commented Nov 29, 2022

Thanks again, released in 3.1.0 🎉

@EarthlingDavey
Copy link
Contributor Author

No problem bud 🎉✌️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants