forma-36
forma-36 copied to clipboard
feat(icons): generate tsx from svg
Purpose of PR
- add SVGR to f36-icons
- Add
build:icon
command tof36-icons
package to generate tsx react component from SVG files
Todo
[ ] The command is currently broken because the template
from SVGR expects a valid JSX element, and we have a custom one. Refactor the icons component or make it work :)
PR Checklist
- [ ] I have read the relevant
readme.md
file(s) - [ ] All commits follow our Git commit message convention
- [ ] Tests are added/updated/not required
- [ ] Tests are passing
- [ ] Storybook stories are added/updated/not required
- [ ] Usage notes are added/updated/not required
- [ ] Has been tested based on Contentful's browser support
- [ ] Doesn't contain any sensitive information