p5.js-web-editor
p5.js-web-editor copied to clipboard
implement file type icons
Fixes #2542 (needs discussion about icon design)
Changes:
Added File Type Icons.
I have created a new React Component and passed the file extension as a prop. The component returns suitable icon according to the prop. I have not put much thought into choosing the icons (I have used react-icons) as the icon choice can be reviewed and discussed later. For the file types I could not find the icons for, I have set the default case to the old generic FileIcon.
I have verified that this pull request:
- [x] has no linting errors (
npm run lint) - [x] has no test errors (
npm run test) - [x] is from a uniquely-named feature branch and is up to date with the
developbranch. - [x] is descriptively named and links to an issue number, i.e.
Fixes #123
🎉 Thanks for opening this pull request! Please check out our contributing guidelines if you haven't already.