diff --git a/src/pattern-library/components/patterns/FadeComponent.tsx b/src/pattern-library/components/patterns/FadeComponent.tsx deleted file mode 100644 index 9b946406..00000000 --- a/src/pattern-library/components/patterns/FadeComponent.tsx +++ /dev/null @@ -1,35 +0,0 @@ -import classnames from 'classnames'; -import { useCallback } from 'preact/hooks'; - -import type { TransitionComponent } from '../../../types'; - -/** - * This component is used just to demonstrate the `TransitionComponent` - * functionality on components supporting it, like `Dialog`. - */ -const FadeComponent: TransitionComponent = ({ - children, - visible, - onTransitionEnd, -}) => { - const handleTransitionEnd = useCallback( - () => onTransitionEnd?.(visible ? 'in' : 'out'), - [visible, onTransitionEnd] - ); - - return ( -
- This dialog has a fade in/out transition when opened/closed. + This dialog has a slide down/up transition when opened/closed.