File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,6 @@ export type MemoChildrenProps = {
6
6
} ;
7
7
8
8
export default React . memo (
9
- ( { children } : MemoChildrenProps ) => children as React . ReactElement ,
9
+ ( { children } : MemoChildrenProps ) => children as React . ReactElement < any > ,
10
10
( _ , { shouldUpdate } ) => ! shouldUpdate ,
11
11
) ;
Original file line number Diff line number Diff line change @@ -384,7 +384,7 @@ describe('dialog', () => {
384
384
render (
385
385
< Dialog
386
386
visible
387
- modalRender = { ( node : React . ReactElement ) =>
387
+ modalRender = { ( node : React . ReactElement < any > ) =>
388
388
cloneElement ( node , { ...node . props , style : { background : '#1890ff' } } )
389
389
}
390
390
/> ,
@@ -394,7 +394,7 @@ describe('dialog', () => {
394
394
395
395
describe ( 'focusTriggerAfterClose' , ( ) => {
396
396
it ( 'should focus trigger after close dialog' , ( ) => {
397
- const Demo = ( ) => {
397
+ const Demo : React . FC = ( ) => {
398
398
const [ visible , setVisible ] = React . useState ( false ) ;
399
399
return (
400
400
< >
You can’t perform that action at this time.
0 commit comments