Skip to content

Commit

Permalink
fix: Invalid import in @deephaven/components for webpack (#2200)
Browse files Browse the repository at this point in the history
Fixes #2192

Tested by following steps in the ticket. Created a react app w/
`create-react-app` and installed
`@deephaven/components@0.91.1-webpack-fix.0` (alpha build from this PR).
It properly started without webpack errors.
  • Loading branch information
mattrunyon authored Aug 30, 2024
1 parent 89ede66 commit dcc95f6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
7 changes: 3 additions & 4 deletions packages/components/src/transitions/FadeTransition.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import CSSTransition, {
CSSTransitionProps,
} from 'react-transition-group/CSSTransition';
import { EndHandler } from 'react-transition-group/Transition';
import { CSSTransition } from 'react-transition-group';
import type { CSSTransitionProps } from 'react-transition-group/CSSTransition';
import type { EndHandler } from 'react-transition-group/Transition';
import classNames from 'classnames';
import ThemeExport from '../ThemeExport';

Expand Down
7 changes: 3 additions & 4 deletions packages/components/src/transitions/SlideTransition.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
// SlideTransition class uses CSSTransition with slide-left and slide-right classNames, depending on the prop direction. The transition is 250ms long.
//
import CSSTransition, {
CSSTransitionProps,
} from 'react-transition-group/CSSTransition';
import { EndHandler } from 'react-transition-group/Transition';
import { CSSTransition } from 'react-transition-group';
import type { CSSTransitionProps } from 'react-transition-group/CSSTransition';
import type { EndHandler } from 'react-transition-group/Transition';

import classNames from 'classnames';
import ThemeExport from '../ThemeExport';
Expand Down

0 comments on commit dcc95f6

Please sign in to comment.