Skip to content

Commit 37a728f

Browse files
Harshit2405-2004tassoevandougfabris
authored
chore(fuselage): Replace implicit any with ReactNode in UI components (#1877)
Co-authored-by: Tasso Evangelista <tasso.evangelista@rocket.chat> Co-authored-by: Douglas Fabris <devfabris@gmail.com>
1 parent e7c55ea commit 37a728f

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

packages/fuselage/src/components/Badge/Badge.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { ElementType, HTMLAttributes } from 'react';
1+
import type { ElementType, HTMLAttributes, ReactNode } from 'react';
22

33
import { prependClassName } from '../../helpers/prependClassName';
44

@@ -8,8 +8,8 @@ export type BadgeProps = {
88
small?: boolean;
99
disabled?: boolean;
1010
className?: string;
11-
children?: any;
12-
title?: any;
11+
children?: ReactNode;
12+
title?: string;
1313
} & HTMLAttributes<HTMLSpanElement>;
1414

1515
/**

packages/fuselage/src/components/Message/MessageHighlight.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { ElementType, HTMLAttributes } from 'react';
1+
import type { ElementType, HTMLAttributes, ReactNode } from 'react';
22

33
import { prependClassName } from '../../helpers/prependClassName';
44

@@ -7,7 +7,7 @@ export type MessageHighlightProps = {
77
clickable?: boolean;
88
variant?: 'critical' | 'relevant' | 'other' | 'link';
99
className?: string;
10-
children: any;
10+
children: ReactNode;
1111
title?: string;
1212
} & HTMLAttributes<HTMLElement>;
1313

0 commit comments

Comments
 (0)