Skip to content

Remove dead exports notificationTypeIcons and notificationTypeColors from example.ts - #1485

Closed
Opulencechuks wants to merge 2 commits into
Disciplr-Org:mainfrom
Opulencechuks:fix-dead-exports
Closed

Opulencechuks wants to merge 2 commits into
Disciplr-Org:mainfrom
Opulencechuks:fix-dead-exports

Conversation

@Opulencechuks

Copy link
Copy Markdown
Contributor

Closes #1219

Summary

This PR removes the notificationTypeIcons and notificationTypeColors dead exports from src/components/Notification/exampleNotification/example.ts.

Details

These simple mappings duplicated the canonical NOTIFICATION_TYPE_MAP already maintained in src/components/Notification/notificationType.ts, but utilized non-token color values (like "grey", "orange", "red", "amber", "blue") rather than real hex values with accessible labels. Since these exports were never imported anywhere outside their own definition file, they were fully dead exports that created a risk of a future contributor unintentionally using them instead of the canonical map.

Both dead exports (and their corresponding unused react-icons imports) have been safely deleted to eliminate this drift risk. The actively used getNotifications() and vaults exports remain untouched.

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.

Remove dead duplicate notification type maps in exampleNotification/example.ts

2 participants