Move custom icons in a separate file

This commit is contained in:
jos 2018-09-19 21:39:06 +02:00
parent 3d2f9ce8df
commit a0de92b919
2 changed files with 24 additions and 22 deletions

View File

@ -0,0 +1,23 @@
// custom fontawesome icons
export const faCompact = {
prefix: 'fa',
iconName: 'compact',
icon: [
16, 16,
[],
null,
'm 0,2 0,2 16,0 0,-2 m -16,4 0,2 16,0 0,-2 m -16,4 0,2 9,0 0,-2'
]
}
export const faFormat = {
prefix: 'fa',
iconName: 'format',
icon: [
16, 16,
[],
null,
'm 0,2 0,2 12,0 0,-2 m -6,4 0,2 10,0 0,-2 m -10,4 0,2 9,0 0,-2 m -15,4 0,2 10,0 0,-2'
]
}

View File

@ -4,31 +4,10 @@ import PropTypes from 'prop-types'
import fontawesome from '@fortawesome/fontawesome' import fontawesome from '@fortawesome/fontawesome'
import faScrewdriver from '@fortawesome/fontawesome-free-solid/faScrewdriver' import faScrewdriver from '@fortawesome/fontawesome-free-solid/faScrewdriver'
import { faCompact, faFormat } from '../customIcons'
import './Menu.css' import './Menu.css'
const faCompact = {
prefix: 'fa',
iconName: 'compact',
icon: [
16, 16,
[],
null,
'm 0,2 0,2 16,0 0,-2 m -16,4 0,2 16,0 0,-2 m -16,4 0,2 9,0 0,-2'
]
}
const faFormat = {
prefix: 'fa',
iconName: 'format',
icon: [
16, 16,
[],
null,
'm 0,2 0,2 12,0 0,-2 m -6,4 0,2 10,0 0,-2 m -10,4 0,2 9,0 0,-2 m -15,4 0,2 10,0 0,-2'
]
}
fontawesome.library.add(faCompact, faFormat, faScrewdriver) fontawesome.library.add(faCompact, faFormat, faScrewdriver)
export default class TreeModeMenu extends PureComponent { export default class TreeModeMenu extends PureComponent {