Move custom icons in a separate file
This commit is contained in:
parent
3d2f9ce8df
commit
a0de92b919
|
@ -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'
|
||||
]
|
||||
}
|
|
@ -4,31 +4,10 @@ import PropTypes from 'prop-types'
|
|||
|
||||
import fontawesome from '@fortawesome/fontawesome'
|
||||
import faScrewdriver from '@fortawesome/fontawesome-free-solid/faScrewdriver'
|
||||
import { faCompact, faFormat } from '../customIcons'
|
||||
|
||||
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)
|
||||
|
||||
export default class TreeModeMenu extends PureComponent {
|
||||
|
|
Loading…
Reference in New Issue