How to use the react-icons/fa.FaFile function in react-icons

To help you get started, we’ve selected a few react-icons examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github cvdlab / react-planner / lib / components / toolbar / toolbar.js View on Github external
var mode = state.get('mode');
      var alterate = state.get('alterate');
      var alterateColor = alterate ? SharedStyle.MATERIAL_COLORS[500].orange : '';

      var sorter = [{
        index: 0, condition: allowProjectFileSupport, dom: _react2.default.createElement(
          _toolbarButton2.default,
          {
            active: false,
            tooltip: translator.t('New project'),
            onClick: function onClick(event) {
              return confirm(translator.t('Would you want to start a new Project?')) ? projectActions.newProject() : null;
            } },
          _react2.default.createElement(_fa.FaFile, null)
        )
      }, {
        index: 1, condition: allowProjectFileSupport,
        dom: _react2.default.createElement(_toolbarSaveButton2.default, { state: state })
      }, {
        index: 2, condition: allowProjectFileSupport,
        dom: _react2.default.createElement(_toolbarLoadButton2.default, { state: state })
      }, {
        index: 3, condition: true,
        dom: _react2.default.createElement(
          _toolbarButton2.default,
          {
            active: [_constants.MODE_VIEWING_CATALOG].includes(mode),
            tooltip: translator.t('Open catalog'),
            onClick: function onClick(event) {
              return projectActions.openCatalog();