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

feat: #3798 Replaced classnames with clsx #4632

Merged
merged 1 commit into from
Mar 24, 2024

Conversation

yuki0410-dev
Copy link
Contributor

Description

Linked issue: close #3798

Problem
See issue #3798

Changes
Replaced classnames with clsx

Screenshots

To reviewers

Contribution checklist

  • I have followed the contributing guidelines.
  • I have added sufficient test coverage for my changes.
  • I have formatted my code with Prettier and checked for linting issues with ESLint for code readability.

Copy link

@pullrequest pullrequest bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ This pull request was sent to the PullRequest network.


@yuki0410-dev you can click here to see the review status or cancel the code review job.

Copy link

@pullrequest pullrequest bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PullRequest Breakdown

Reviewable lines of change

+ 30
- 39

91% JavaScript
6% JavaScript (tests)
3% JSON

Generated lines of change

+ 5
- 5

Type of change

Feature - These changes are adding a new feature or improvement to existing code.

Copy link

codecov bot commented Mar 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.96%. Comparing base (009efaf) to head (c9bb7fd).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4632   +/-   ##
=======================================
  Coverage   96.96%   96.96%           
=======================================
  Files          28       28           
  Lines        2607     2607           
  Branches     1101     1101           
=======================================
  Hits         2528     2528           
  Misses         79       79           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link

@pullrequest pullrequest bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change does what the description says - no security issues here.

Image of Jacques Jacques


Reviewed with ❤️ by PullRequest

Copy link

@pullrequest pullrequest bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These changes look good to me as well for upgrading to the more modern clsx. I didn't notice any issues with the upgrade.

At a quick glance, I did notice here that there is a globals entry for classnames, but provided that all package.json scripts are still running successfully after this upgrade, I don't think that should be addressed in this PR.

Nice work with this one! Another great improvement.

Image of Ryan Ryan


Reviewed with ❤️ by PullRequest

@yuki0410-dev
Copy link
Contributor Author

Thanks for the review.

I removed classnames from global in rollup.config.mjs.
The clsx did not affect the build result whether it was present in globals or not.

Copy link

@pullrequest pullrequest bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PullRequest reviewed the updates made to #4632 up until the latest commit (c9bb7fd). No further issues were found.

Reviewed by:

Image of Ryan Ryan

@martijnrusschen
Copy link
Member

Thanks this looks good.

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.

Replace clasnames with clsx
2 participants