Skip to content

Commit 6948ce2

Browse files
committed
Fix InfoIcon to use imported faCircleInfo icon
Replaces the string-based icon reference with the imported faCircleInfo object from FontAwesome. This ensures compatibility with the FontAwesome React component and prevents icon rendering issues.
1 parent 23ed98e commit 6948ce2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/element/InfoIcon.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import React from 'react';
22
import PropTypes from 'prop-types';
33
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
4+
import { faCircleInfo } from "@fortawesome/free-solid-svg-icons";
45

56

67
/**
@@ -14,7 +15,7 @@ const InfoIcon = (prop) => {
1415

1516
return (
1617
<span title={infoText}>
17-
<FontAwesomeIcon icon="circle-info" size={size} className="info-icon" />
18+
<FontAwesomeIcon icon={faCircleInfo} size={size} className="info-icon" />
1819
</span>
1920
);
2021
};

0 commit comments

Comments
 (0)