2018-10-01 10:20:45 -04:00
|
|
|
/**
|
|
|
|
* Mini-library of icons
|
|
|
|
*/
|
|
|
|
import React from 'react'
|
|
|
|
import { library } from '@fortawesome/fontawesome-svg-core'
|
|
|
|
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
|
2018-10-01 11:59:39 -04:00
|
|
|
import { faQuestionCircle, faPaintBrush, faInfoCircle, faTimes, faCheck, faCheckDouble,
|
2019-06-19 06:35:03 -04:00
|
|
|
faAngleLeft, faCaretDown, faSearch } from '@fortawesome/free-solid-svg-icons'
|
2018-10-01 10:20:45 -04:00
|
|
|
|
|
|
|
library.add(
|
|
|
|
faQuestionCircle,
|
|
|
|
faInfoCircle,
|
|
|
|
faPaintBrush,
|
|
|
|
faTimes,
|
|
|
|
faCheck,
|
|
|
|
faCheckDouble,
|
|
|
|
faAngleLeft,
|
2019-06-19 06:35:03 -04:00
|
|
|
faCaretDown,
|
|
|
|
faSearch
|
2018-10-01 10:20:45 -04:00
|
|
|
);
|
|
|
|
|
|
|
|
const HelpIcon = () => (
|
|
|
|
<FontAwesomeIcon icon="question-circle" />
|
|
|
|
);
|
|
|
|
|
|
|
|
const InfoIcon = () => (
|
|
|
|
<FontAwesomeIcon icon="info-circle" />
|
|
|
|
);
|
|
|
|
|
|
|
|
const EditIcon = () => (
|
|
|
|
<FontAwesomeIcon icon="paint-brush" />
|
|
|
|
);
|
|
|
|
|
|
|
|
const CloseIcon = () => (
|
|
|
|
<FontAwesomeIcon icon="times" />
|
|
|
|
);
|
|
|
|
|
|
|
|
const SaveIcon = () => (
|
|
|
|
<FontAwesomeIcon icon="check" />
|
|
|
|
);
|
|
|
|
|
|
|
|
const SaveDoneIcon = () => (
|
|
|
|
<FontAwesomeIcon icon="check-double" />
|
|
|
|
);
|
|
|
|
|
|
|
|
const BackIcon = () => (
|
|
|
|
<FontAwesomeIcon icon="angle-left" />
|
2019-06-19 06:35:03 -04:00
|
|
|
);
|
2018-10-01 10:20:45 -04:00
|
|
|
|
|
|
|
const DownIcon = () => (
|
|
|
|
<FontAwesomeIcon icon="caret-down" />
|
2019-06-19 06:35:03 -04:00
|
|
|
);
|
|
|
|
|
|
|
|
const SearchIcon = () => (
|
|
|
|
<FontAwesomeIcon icon="search" />
|
|
|
|
);
|
2018-10-01 10:20:45 -04:00
|
|
|
|
2019-06-19 06:35:03 -04:00
|
|
|
export { HelpIcon, InfoIcon, EditIcon, CloseIcon, SaveIcon, SaveDoneIcon, BackIcon, DownIcon, SearchIcon };
|