Skip to content

Commit 188b9db

Browse files
committed
Remove redundant comments
1 parent 071cd82 commit 188b9db

File tree

5 files changed

+3
-7
lines changed

5 files changed

+3
-7
lines changed

src/components/Highlight/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ interface HighlightProps {
1111
color?: string;
1212
children: React.ReactNode;
1313
style?: CSSProperties;
14-
[x: string]: any; // For any additional props
14+
[x: string]: any;
1515
}
1616

1717
const H: React.FC<HighlightProps> = ({ color = '#ffd56a', children, style = {}, ...rest }) => {

src/components/LastThreeGalleryImages/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import * as styles from './styles.module.scss'
1414
interface FileNode {
1515
id: string;
1616
childImageSharp: {
17-
gatsbyImageData: any; // Using any for gatsby image data type for simplicity
17+
gatsbyImageData: any;
1818
};
1919
}
2020

src/components/PostDonate/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ function modal(myImg: string, qr: string, address: string, caption1: string, cap
5252
}
5353

5454
const PostDonate: React.FC<PostDonateProps> = ({ address, caption1, caption2 }) => {
55-
// Default values for props
55+
5656
const btcAddress = address || BitcoinWallet;
5757
const btcCaption1 = caption1 || 'BITCOIN NETWORK';
5858
const btcCaption2 = caption2 || 'Address copied to clipboard!';

src/components/SpoilerServices/index.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import M from "../Markdown";
1010
import Arrow from "../../images/freelance/services/arrow2.svg"
1111
import * as stylesSpoilers from "../../styles/spoilers.module.scss"
1212

13-
// Define a type for service items
1413
interface ServiceItem {
1514
text?: string;
1615
textRu?: string;
@@ -19,10 +18,8 @@ interface ServiceItem {
1918

2019
const Spoiler: React.FC<SpoilerServicesProps> = ({ title, services = [], spoilerExtraDesc, isEnglish=true }) => {
2120

22-
// Use proper type for the ref
2321
const collRef = useRef<(HTMLButtonElement | null)[]>([]);
2422

25-
// Define the toggle content function with the correct type
2623
const toggleContent = (event: Event) => {
2724
const button = event.currentTarget as HTMLButtonElement;
2825
const content = button.nextElementSibling as HTMLElement;

src/components/TileContainer/index.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ interface TileContainerProps {
2020
marginTop?: string;
2121
}
2222

23-
// To ensure TypeScript recognizes 'width' as a valid property
2423
interface ChildProps {
2524
width?: string;
2625
[key: string]: any;

0 commit comments

Comments
 (0)