Repository navigation
Refactor components to use 'cn' and update dependencies - #54
Merged
Merged
Conversation
…, and package manager version
… useEventListener
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request migrates the codebase from using the
clsxandtailwind-mergelibraries to the newcnutility package for class name merging. It also updates several dependencies to their latest patch or minor versions. The most significant changes are grouped below.Migration to
cnutility for class name merging:Replaced imports and usage of
clsxandtailwind-mergewith the newcnpackage throughout the codebase, including updates to thecnutility function and its consumers in UI components and hooks. (app/lib/utils.ts,app/components/pages/calculators/bmi.tsx,app/components/pages/calculators/general-calculator.tsx,app/components/reui/number-field.tsx) [1] [2] [3] [4] [5]Updated
package.jsonandpnpm-lock.yamlto removeclsxandtailwind-mergedependencies and add the newcnpackage. (package.json,pnpm-lock.yaml) [1] [2] [3] [4]Dependency upgrades:
lucide-react,react-dropzone,zod, and various internal and dev dependencies. (package.json,pnpm-lock.yaml) [1] [2] [3] [4] [5] [6] [7] [8] [9] [10]Build and tooling updates:
pnpmpackage manager version and corresponding lockfile references. (package.json,pnpm-lock.yaml) [1] [2]Code style and type improvements:
app/hooks/use-event-listener.ts)Summary:
This PR modernizes and simplifies class name handling by consolidating on the
cnutility, reduces dependency bloat, and keeps the project up to date with the latest dependency versions.