docs(CustomGauge): remove threshold prop from documentation and usage example
- Removed all references to the unused prop from the JSDoc and usage example in the CustomGauge component. - Ensured PropTypes and documentation accurately
This commit is contained in:
1 parent
dc8b0aed9f
commit
10ad3397a3
1 file changed
-4
@@ -17,7 +17,6 @@ const MAXIMUM_VALUE = 100;
|
|||||||
* @param {number} [props.progress=0] - Progress percentage (0-100)
|
* @param {number} [props.progress=0] - Progress percentage (0-100)
|
||||||
* @param {number} [props.radius=60] - Radius of the gauge circle
|
* @param {number} [props.radius=60] - Radius of the gauge circle
|
||||||
* @param {number} [props.strokeWidth=15] - Width of the gauge stroke
|
* @param {number} [props.strokeWidth=15] - Width of the gauge stroke
|
||||||
* @param {number} [props.threshold=50] - Threshold for color change
|
|
||||||
* @param {number} [props.precision=1] - Precision of the progress percentage
|
* @param {number} [props.precision=1] - Precision of the progress percentage
|
||||||
* @param {string} [props.unit="%"] - Unit of progress
|
* @param {string} [props.unit="%"] - Unit of progress
|
||||||
*
|
*
|
||||||
@@ -26,7 +25,6 @@ const MAXIMUM_VALUE = 100;
|
|||||||
* progress={75}
|
* progress={75}
|
||||||
* radius={50}
|
* radius={50}
|
||||||
* strokeWidth={10}
|
* strokeWidth={10}
|
||||||
* threshold={50}
|
|
||||||
* />
|
* />
|
||||||
*
|
*
|
||||||
* @returns {React.ReactElement} Rendered CustomGauge component
|
* @returns {React.ReactElement} Rendered CustomGauge component
|
||||||
@@ -36,7 +34,6 @@ const CustomGauge = ({
|
|||||||
progress = 0,
|
progress = 0,
|
||||||
radius = 70,
|
radius = 70,
|
||||||
strokeWidth = 15,
|
strokeWidth = 15,
|
||||||
threshold = 50,
|
|
||||||
precision = 1,
|
precision = 1,
|
||||||
unit = "%",
|
unit = "%",
|
||||||
}) => {
|
}) => {
|
||||||
@@ -146,7 +143,6 @@ CustomGauge.propTypes = {
|
|||||||
progress: PropTypes.number,
|
progress: PropTypes.number,
|
||||||
radius: PropTypes.number,
|
radius: PropTypes.number,
|
||||||
strokeWidth: PropTypes.number,
|
strokeWidth: PropTypes.number,
|
||||||
threshold: PropTypes.number,
|
|
||||||
precision: PropTypes.number,
|
precision: PropTypes.number,
|
||||||
unit: PropTypes.string,
|
unit: PropTypes.string,
|
||||||
};
|
};
|
||||||
Reference in new issue
Block a user