You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: React 19 compatibility and standardize package manager (#13)
* fix: React 19 compatibility - use camelCase SVG attributes and fix NaN height
Fixes#11
- Convert clip-path to clipPath (4 files)
- Convert stroke-width to strokeWidth (2 files)
- Convert fill-rule/clip-rule to fillRule/clipRule in CSS styles (3 files)
- Convert fill-rule/clip-rule to fillRule/clipRule in path attributes (2 files)
- Fix height calculation to prevent NaN values when width is provided
These changes maintain full backward compatibility with React >=16 while
fixing console errors in React 19 and Next.js 15.
Affected files:
- src/icons/flat/components/Visa.tsx
- src/icons/flat/components/Mastercard.tsx
- src/icons/logo-border/components/Visa.tsx
- src/icons/logo-border/components/Mastercard.tsx
- src/icons/mono-outline/components/Hiper.tsx
- src/icons/mono-outline/components/Swish.tsx
- src/icons/mono/components/Visa.tsx
- src/icons/mono/components/Mastercard.tsx
- src/icons/mono/components/Swish.tsx
- src/index.tsx
* chore: remove unused package manager lock files
Fixes#12
- Remove package-lock.json and yarn.lock
- Add npm and yarn lock files to .gitignore
- Regenerate pnpm-lock.yaml with current pnpm version (v10.18.0)
- Document pnpm as the official package manager in Contributing section
This project uses pnpm (as seen in CI/CD workflows). Keeping only
pnpm-lock.yaml ensures consistency between local development and CI/CD.
* fix: update style rules to use kebab-case for SVG attributes
---------
Co-authored-by: Cody Bromley <codybrom@users.noreply.github.com>
0 commit comments