Skip to content

Commit

Permalink
fix: Do not require dynamic
Browse files Browse the repository at this point in the history
  • Loading branch information
Crash-- committed Jul 15, 2019
1 parent 68419ef commit 41e08ac
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/lib/importIcons.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,9 @@

const importIcons = function() {
// add needed cozy-ui icon names here
const names = ['bottom', 'cross', 'top']
names.map(n => {
require('cozy-ui/assets/icons/ui/' + n + '.svg')
})
require('cozy-ui/assets/icons/ui/bottom.svg')
require('cozy-ui/assets/icons/ui/cross.svg')
require('cozy-ui/assets/icons/ui/top.svg')
}

importIcons()

0 comments on commit 41e08ac

Please sign in to comment.