Skip to content

Add CategoryIcon component and exports#1503

Merged
leecalcote merged 3 commits intolayer5io:masterfrom
NSTKrishna:feat/add-category-icon
May 7, 2026
Merged

Add CategoryIcon component and exports#1503
leecalcote merged 3 commits intolayer5io:masterfrom
NSTKrishna:feat/add-category-icon

Conversation

@NSTKrishna
Copy link
Copy Markdown
Contributor

Introduce a new CategoryIcon SVG component (src/icons/CategoryIcon/CategoryIcon.tsx) that accepts width, height, primaryFill, secondaryFill, and style, using theme defaults and constants for sizing and color fallbacks. Add an index re-export for the component (src/icons/CategoryIcon/index.tsx) and update the top-level icons barrel (src/icons/index.ts) to export CategoryIcon.

Notes for Reviewers

This PR fixes #1490

Signed commits

  • Yes, I signed my commits.

@NSTKrishna
Copy link
Copy Markdown
Contributor Author

@rishiraj38 review the PR

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request introduces a new CategoryIcon component and integrates it into the icons library. The review feedback suggests improving maintainability by reusing the existing CustomIconProps type and resolving a redundant dual export in the component's index file to prevent potential name collisions.

Comment thread src/icons/CategoryIcon/CategoryIcon.tsx Outdated
Comment thread src/icons/CategoryIcon/index.tsx Outdated
@leecalcote
Copy link
Copy Markdown
Member

Thanks, @NSTKrishna. Be sure to respond to all feedback comments.

NSTKrishna added 2 commits May 7, 2026 04:45
Introduce a new CategoryIcon SVG component (src/icons/CategoryIcon/CategoryIcon.tsx) that accepts width, height, primaryFill, secondaryFill, and style, using theme defaults and constants for sizing and color fallbacks. Add an index re-export for the component (src/icons/CategoryIcon/index.tsx) and update the top-level icons barrel (src/icons/index.ts) to export CategoryIcon.

Signed-off-by: NSTKrishna <krishnagehlot936@gmail.com>
Replace local CategoryIconProps and IconProps import with shared CustomIconProps in CategoryIcon.tsx, simplifying prop typing and unifying with other icons. Remove default export from CategoryIcon (now only named export). Update index.tsx to export the named CategoryIcon only and remove the redundant default export line. Minor cleanup: remove trailing newline in index file.

Signed-off-by: NSTKrishna <krishnagehlot936@gmail.com>
@NSTKrishna NSTKrishna force-pushed the feat/add-category-icon branch from 1a65a02 to 376d3de Compare May 6, 2026 23:15
@NSTKrishna
Copy link
Copy Markdown
Contributor Author

NSTKrishna commented May 6, 2026

@leecalcote I resolve the all feedback comments and kindly review the pr

Comment thread src/icons/CategoryIcon/index.tsx Outdated
Co-authored-by: Rishi Raj <180109771+rishiraj38@users.noreply.github.com>
Signed-off-by: Krishna Gehlot <krishnagehlot936@gmail.com>
@NSTKrishna NSTKrishna requested a review from rishiraj38 May 7, 2026 17:16
@leecalcote leecalcote merged commit 6a606a9 into layer5io:master May 7, 2026
2 of 5 checks passed
@NSTKrishna NSTKrishna deleted the feat/add-category-icon branch May 7, 2026 19:55
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.

[Feature] Add CategoryIcon to Sistent

3 participants