11import React from 'react' ;
2- import clsx from 'clsx' ;
2+
33import { loadCSS } from 'fg-loadcss' ;
44import { makeStyles } from '@material-ui/core/styles' ;
5- import { red } from '@material-ui/core/colors' ;
5+ import { green } from '@material-ui/core/colors' ;
66import Icon from '@material-ui/core/Icon' ;
77
88const useStyles = makeStyles ( theme => ( {
@@ -11,12 +11,6 @@ const useStyles = makeStyles(theme => ({
1111 margin : theme . spacing ( 2 ) ,
1212 } ,
1313 } ,
14- iconHover : {
15- margin : theme . spacing ( 2 ) ,
16- '&:hover' : {
17- color : red [ 800 ] ,
18- } ,
19- } ,
2014} ) ) ;
2115
2216export default function FontAwesome ( ) {
@@ -34,13 +28,9 @@ export default function FontAwesome() {
3428 < Icon className = "fa fa-plus-circle" />
3529 < Icon className = "fa fa-plus-circle" color = "primary" />
3630 < Icon className = "fa fa-plus-circle" color = "secondary" />
37- < Icon className = "fa fa-plus-circle" color = "action" />
38- < Icon
39- className = { clsx ( classes . iconHover , 'fa fa-plus-circle' ) }
40- color = "error"
41- style = { { fontSize : 30 } }
42- />
43- < Icon className = "fa fa-plus-circle" color = "disabled" fontSize = "large" />
31+ < Icon className = "fa fa-plus-circle" style = { { color : green [ 500 ] } } />
32+ < Icon className = "fa fa-plus-circle" fontSize = "small" />
33+ < Icon className = "fa fa-plus-circle" style = { { fontSize : 30 } } />
4434 </ div >
4535 ) ;
4636}
0 commit comments