File tree 4 files changed +5
-5
lines changed 4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
1
export const EmojiButton : React . FC < {
2
2
onClick : ( ) => void ;
3
- emoji : string | JSX . Element ;
3
+ emoji : string | React . ReactElement ;
4
4
children ?: React . ReactNode ;
5
5
} > = ( { onClick, children, emoji } ) => (
6
6
< button
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ const Step: React.FC<{
32
32
count : number ;
33
33
title : string ;
34
34
subTitle : string ;
35
- code : JSX . Element ;
35
+ code : React . ReactElement ;
36
36
} > = ( props ) => (
37
37
< div className = "flex flex-col gap-1 items-center" >
38
38
< div className = "h-6 w-6 mb-2 text-sm rounded-full bg-toast-900 text-toast-50 flex items-center justify-center" >
Original file line number Diff line number Diff line change 1
1
declare module '*.mdx' {
2
- let MDXComponent : ( props : any ) => JSX . Element ;
2
+ let MDXComponent : ( props : any ) => React . ReactElement ;
3
3
export default MDXComponent ;
4
4
}
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ export type ToastPosition =
9
9
| 'bottom-center'
10
10
| 'bottom-right' ;
11
11
12
- export type Renderable = JSX . Element | string | null ;
12
+ export type Renderable = React . ReactElement | string | null ;
13
13
14
14
export interface IconTheme {
15
15
primary : string ;
@@ -82,7 +82,7 @@ export interface ToasterProps {
82
82
gutter ?: number ;
83
83
containerStyle ?: React . CSSProperties ;
84
84
containerClassName ?: string ;
85
- children ?: ( toast : Toast ) => JSX . Element ;
85
+ children ?: ( toast : Toast ) => React . ReactElement ;
86
86
}
87
87
88
88
export interface ToastWrapperProps {
You can’t perform that action at this time.
0 commit comments