Skip to content

Commit

Permalink
Update for Material-UI v5.
Browse files Browse the repository at this point in the history
  • Loading branch information
leMaik committed Feb 6, 2021
1 parent 86b2754 commit 5ca0df4
Show file tree
Hide file tree
Showing 5 changed files with 467 additions and 142 deletions.
4 changes: 2 additions & 2 deletions generate-module.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ function checkNameClashes (icons) {

for (const { name, filename, svgPath } of icons) {
const code = `import createIcon from './util/createIcon'
export default createIcon('${svgPath}')
export default createIcon('${svgPath}', '${name}')
`

// commonjs module syntax
Expand All @@ -65,7 +65,7 @@ function checkNameClashes (icons) {

for (const { name, filename, svgPath } of lightIcons) {
const code = `import createIcon from '../util/createIcon'
export default createIcon('${svgPath}')
export default createIcon('${svgPath}', '${name}')
`

// commonjs module syntax
Expand Down
Loading

0 comments on commit 5ca0df4

Please sign in to comment.