@@ -2,6 +2,15 @@ import React from 'react';
22
33import OverlayTrigger from 'react-bootstrap/lib/OverlayTrigger' ;
44import Tooltip from 'react-bootstrap/lib/Tooltip' ;
5+ import {
6+ FaCloud ,
7+ FaCog ,
8+ FaCogs ,
9+ FaDatabase ,
10+ FaExclamationCircle ,
11+ FaFlask ,
12+ FaPlug ,
13+ } from 'react-icons/fa' ;
514import { connect } from 'react-redux' ;
615import { Link } from 'react-router' ;
716
@@ -285,15 +294,15 @@ class Main extends React.Component {
285294
286295 const getMetadataStatusIcon = ( ) => {
287296 if ( metadata . inconsistentObjects . length === 0 ) {
288- return < i className = { styles . question + ' fa fa-cog' } /> ;
297+ return < FaCog className = { styles . question } /> ;
289298 }
290299 return (
291300 < div className = { styles . question } >
292- < i className = { 'fa fa-cog' } />
301+ < FaCog />
293302 < div className = { styles . overlappingExclamation } >
294303 < div className = { styles . iconWhiteBackground } />
295304 < div >
296- < i className = { 'fa fa-exclamation-circle' } />
305+ < FaExclamationCircle />
297306 </ div >
298307 </ div >
299308 </ div >
@@ -351,7 +360,9 @@ class Main extends React.Component {
351360 data-test = { `${ title . toLowerCase ( ) } -tab-link` }
352361 >
353362 < div className = { styles . iconCenter } data-test = { block } >
354- < i className = { `fa ${ icon } ` } aria-hidden = "true" />
363+ { React . createElement ( icon , {
364+ 'aria-hidden' : true ,
365+ } ) }
355366 </ div >
356367 < p > { title } </ p >
357368 </ Link >
@@ -385,14 +396,14 @@ class Main extends React.Component {
385396 < ul className = { styles . sidebarItems } >
386397 { getSidebarItem (
387398 'API' ,
388- 'fa-flask' ,
399+ FaFlask ,
389400 tooltips . apiExplorer ,
390401 '/api/api-explorer' ,
391402 true
392403 ) }
393404 { getSidebarItem (
394405 'Data' ,
395- 'fa-database' ,
406+ FaDatabase ,
396407 tooltips . data ,
397408 currentSource
398409 ? schemaList . length
@@ -402,19 +413,19 @@ class Main extends React.Component {
402413 ) }
403414 { getSidebarItem (
404415 'Actions' ,
405- 'fa-cogs' ,
416+ FaCogs ,
406417 tooltips . actions ,
407418 '/actions/manage/actions'
408419 ) }
409420 { getSidebarItem (
410421 'Remote Schemas' ,
411- 'fa-plug' ,
422+ FaPlug ,
412423 tooltips . remoteSchema ,
413424 '/remote-schemas/manage/schemas'
414425 ) } { ' ' }
415426 { getSidebarItem (
416427 'Events' ,
417- 'fa-cloud' ,
428+ FaCloud ,
418429 tooltips . events ,
419430 '/events/data/manage'
420431 ) }
0 commit comments