Skip to content

Commit 3f7385d

Browse files
committed
react - fix classname icon
1 parent 02834f9 commit 3f7385d

File tree

1 file changed

+4
-1
lines changed
  • react/src/app/modules/general/home

1 file changed

+4
-1
lines changed

react/src/app/modules/general/home/home.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ class Home extends React.Component {
5151
];
5252

5353
function Item(props) {
54+
55+
const iconclass = props["feature"].icon + " fa-lg text-primary";
56+
5457
return <div className="col-12 col-sm-6 col-md-4 col-lg-4 col-xl-3 mb-2">
5558
<div className="nga-card bg-light mb-3">
5659
<Link to={props.feature.link}>
@@ -60,7 +63,7 @@ class Home extends React.Component {
6063
<h4 className="card-title h5">{props.feature.name}</h4>
6164
</div>
6265
<div className="col-2 col-xl-2">
63-
<i className="fab fa-bootstrap fa-lg text-primary"></i>
66+
<i className={iconclass}></i>
6467
</div>
6568
</div>
6669
</div>

0 commit comments

Comments
 (0)