Skip to content

Commit 2e51a03

Browse files
justin808claude
andcommitted
Add PropTypes to Footer icon components
Fix eslint react/prop-types validation errors for CheckmarkIcon, CheckmarkCircleIcon, and InfoIcon components. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
1 parent 224f536 commit 2e51a03

File tree

1 file changed

+16
-0
lines changed
  • client/app/bundles/comments/components/Footer/ror_components

1 file changed

+16
-0
lines changed

client/app/bundles/comments/components/Footer/ror_components/Footer.jsx

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import React from 'react';
2+
import PropTypes from 'prop-types';
23
import BaseComponent from 'libs/components/BaseComponent';
34

45
// Reusable icon components to reduce SVG duplication
@@ -12,6 +13,11 @@ const CheckmarkIcon = ({ className = 'w-4 h-4', color = 'text-green-400' }) => (
1213
</svg>
1314
);
1415

16+
CheckmarkIcon.propTypes = {
17+
className: PropTypes.string,
18+
color: PropTypes.string,
19+
};
20+
1521
const CheckmarkCircleIcon = ({ className = 'w-4 h-4', color = 'text-green-400' }) => (
1622
<svg className={`${className} ${color}`} fill="currentColor" viewBox="0 0 20 20" aria-hidden="true">
1723
<path
@@ -22,6 +28,11 @@ const CheckmarkCircleIcon = ({ className = 'w-4 h-4', color = 'text-green-400' }
2228
</svg>
2329
);
2430

31+
CheckmarkCircleIcon.propTypes = {
32+
className: PropTypes.string,
33+
color: PropTypes.string,
34+
};
35+
2536
const InfoIcon = ({ className = 'w-4 h-4', color = 'text-yellow-400' }) => (
2637
<svg className={`${className} ${color}`} fill="currentColor" viewBox="0 0 20 20" aria-hidden="true">
2738
<path
@@ -32,6 +43,11 @@ const InfoIcon = ({ className = 'w-4 h-4', color = 'text-yellow-400' }) => (
3243
</svg>
3344
);
3445

46+
InfoIcon.propTypes = {
47+
className: PropTypes.string,
48+
color: PropTypes.string,
49+
};
50+
3551
export default class Footer extends BaseComponent {
3652
render() {
3753
return (

0 commit comments

Comments
 (0)