Skip to content

Commit af9785c

Browse files
authored
chore: revert OpenTransition prop change to fix undefined TransitionProps in builds (#8671)
* define Transition props * Revert "define Transition props" This reverts commit 0262f9a. * revert OpenTransition props type to any deciding to do this for now since this is internal only and the types are problematic to implement * get rid of explicit module check
1 parent 7ee8d64 commit af9785c

File tree

2 files changed

+3
-26
lines changed

2 files changed

+3
-26
lines changed

eslint.config.mjs

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -445,29 +445,6 @@ export default [{
445445
"jsdoc/require-jsdoc": OFF,
446446
"jsdoc/require-description": OFF,
447447
},
448-
}, {
449-
files: [
450-
"packages/**/*.ts",
451-
"packages/**/*.tsx"
452-
],
453-
454-
rules: {
455-
"@typescript-eslint/explicit-module-boundary-types": ERROR,
456-
},
457-
}, {
458-
files: [
459-
"**/dev/**",
460-
"**/test/**",
461-
"**/stories/**",
462-
"**/docs/**",
463-
"**/chromatic/**",
464-
"**/chromatic-fc/**",
465-
"**/__tests__/**"
466-
],
467-
468-
rules: {
469-
"@typescript-eslint/explicit-module-boundary-types": OFF,
470-
},
471448
}, {
472449
files: [
473450
"packages/@react-aria/focus/src/**/*.ts",
@@ -504,4 +481,4 @@ export default [{
504481
rules: {
505482
"react/react-in-jsx-scope": OFF,
506483
},
507-
}];
484+
}];

packages/@react-spectrum/overlays/src/OpenTransition.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
*/
1212

1313
import React, {JSX, JSXElementConstructor, ReactElement} from 'react';
14-
import {Transition, TransitionProps} from 'react-transition-group';
14+
import {Transition} from 'react-transition-group';
1515

1616
const OPEN_STATES = {
1717
entering: false,
@@ -32,7 +32,7 @@ const OPEN_STATES = {
3232
*/
3333

3434
export function OpenTransition(
35-
props: TransitionProps
35+
props: any
3636
): JSX.Element | ReactElement<any, string | JSXElementConstructor<any>>[] {
3737
// Do not apply any transition if in chromatic.
3838
if (process.env.CHROMATIC) {

0 commit comments

Comments
 (0)