Ks 030 oct 01 figma icons 2047#2285
Conversation
…extEditor` with custom SVGs - Replaced `@mui/icons-material` icons (`FormatBold`, `FormatItalic`, `FormatUnderlined`, `FormatQuote`, `LooksOne`, `LooksTwo`, `Looks3`, `FormatListBulleted`, `FormatListNumbered`) with respective custom SVGs. - Updated imports for seamless integration.
WalkthroughReplaces Material‑UI icon imports with local SVG ReactComponent icons in two UI components; no behavior, API, or toolbar action logic changed. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested reviewers
Poem
Pre-merge checks and finishing touches❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
✨ Finishing touches
🧪 Generate unit tests
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🧹 Nitpick comments (2)
Clients/src/presentation/components/RichTextEditor/index.tsx (2)
5-8: Consider centralizing shared icon imports to reduce duplication.Both
PolicyDetailsModal.tsxandRichTextEditor/index.tsximportFormatBoldandFormatItalicfrom the same SVG sources. Consider creating a centralized icon export file (e.g.,assets/icons/index.ts) to export all custom icons, reducing import duplication and improving maintainability.Example centralized icon file (
Clients/src/presentation/assets/icons/index.ts):export { ReactComponent as FormatBold } from "./formatBold.svg"; export { ReactComponent as FormatItalic } from "./formatItalic.svg"; export { ReactComponent as FormatUnderlined } from "./formatUnderlined.svg"; export { ReactComponent as FormatQuote } from "./formatQuote.svg"; export { ReactComponent as FormatListBulleted } from "./formatListBulleted.svg"; export { ReactComponent as FormatListNumbered } from "./formatListNumbered.svg"; export { ReactComponent as LooksOne } from "./one.svg"; export { ReactComponent as LooksTwo } from "./two.svg"; export { ReactComponent as LooksThree } from "./three.svg";Then imports would simplify to:
import { FormatBold, FormatItalic, FormatListBulleted, FormatListNumbered } from "../../assets/icons";
5-8: Approve SVG icon imports.
All SVG icon files exist and are imported correctly, and their usage in the toolbar is confirmed.
Optionally, consolidate these icon exports into a shared module (e.g., anicons/index.ts) to reduce duplication across components.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
⛔ Files ignored due to path filters (9)
Clients/src/presentation/assets/icons/formatBold.svgis excluded by!**/*.svgClients/src/presentation/assets/icons/formatItalic.svgis excluded by!**/*.svgClients/src/presentation/assets/icons/formatListBulleted.svgis excluded by!**/*.svgClients/src/presentation/assets/icons/formatListNumbered.svgis excluded by!**/*.svgClients/src/presentation/assets/icons/formatQuote.svgis excluded by!**/*.svgClients/src/presentation/assets/icons/formatUnderlined.svgis excluded by!**/*.svgClients/src/presentation/assets/icons/one.svgis excluded by!**/*.svgClients/src/presentation/assets/icons/three.svgis excluded by!**/*.svgClients/src/presentation/assets/icons/two.svgis excluded by!**/*.svg
📒 Files selected for processing (2)
Clients/src/presentation/components/Policies/PolicyDetailsModal.tsx(1 hunks)Clients/src/presentation/components/RichTextEditor/index.tsx(1 hunks)
🔇 Additional comments (1)
Clients/src/presentation/components/Policies/PolicyDetailsModal.tsx (1)
17-23: SVG icon imports verified; files exist in Clients/src/presentation/assets/icons. Proceed with visual QA or include snapshot tests to confirm each icon renders with the expected styling from Figma.
Describe your changes
refactor(icons): replace MUI icons in
PolicyDetailsModalandRichTextEditorwith custom SVGs@mui/icons-materialicons (FormatBold,FormatItalic,FormatUnderlined,FormatQuote,LooksOne,LooksTwo,Looks3,FormatListBulleted,FormatListNumbered) with respective custom SVGs.Write your issue number after "Fixes "
Fixes #2047
Please ensure all items are checked off before requesting a review: