diff options
author | 2023-05-27 16:33:26 +0530 | |
---|---|---|
committer | 2023-07-23 22:15:29 +0530 | |
commit | 792077667f19668d7a602f6a40d18517f21d240c (patch) | |
tree | e7c3ec4fe4d2d92d8d86159a4d926e29178edacc /src/components/ui/effects/Appear.tsx | |
parent | 6.4.1-nightly.10 [skip ci] (diff) | |
download | ferdium-app-792077667f19668d7a602f6a40d18517f21d240c.tar.gz ferdium-app-792077667f19668d7a602f6a40d18517f21d240c.tar.zst ferdium-app-792077667f19668d7a602f6a40d18517f21d240c.zip |
update react-router-dom,react-tooltip& react-transition-group
Diffstat (limited to 'src/components/ui/effects/Appear.tsx')
-rw-r--r-- | src/components/ui/effects/Appear.tsx | 27 |
1 files changed, 15 insertions, 12 deletions
diff --git a/src/components/ui/effects/Appear.tsx b/src/components/ui/effects/Appear.tsx index 2076f6ba6..06f63a029 100644 --- a/src/components/ui/effects/Appear.tsx +++ b/src/components/ui/effects/Appear.tsx | |||
@@ -1,5 +1,5 @@ | |||
1 | import { ReactElement, ReactNode, useEffect, useState } from 'react'; | 1 | import { ReactElement, ReactNode, useEffect, useState } from 'react'; |
2 | import { CSSTransitionGroup } from 'react-transition-group'; | 2 | import { CSSTransition, TransitionGroup } from 'react-transition-group'; |
3 | 3 | ||
4 | interface IProps { | 4 | interface IProps { |
5 | children: ReactNode; | 5 | children: ReactNode; |
@@ -33,17 +33,20 @@ const Appear = ({ | |||
33 | } | 33 | } |
34 | 34 | ||
35 | return ( | 35 | return ( |
36 | <CSSTransitionGroup | 36 | <TransitionGroup component={null}> |
37 | transitionName={transitionName} | 37 | <CSSTransition |
38 | transitionAppear={transitionAppear} | 38 | classNames={transitionName || className} |
39 | transitionLeave={transitionLeave} | 39 | appear={transitionAppear} |
40 | transitionAppearTimeout={transitionAppearTimeout} | 40 | exit={transitionLeave} |
41 | transitionEnterTimeout={transitionEnterTimeout} | 41 | timeout={{ |
42 | transitionLeaveTimeout={transitionLeaveTimeout} | 42 | enter: transitionEnterTimeout, |
43 | className={className} | 43 | appear: transitionAppearTimeout, |
44 | > | 44 | exit: transitionLeaveTimeout, |
45 | {children} | 45 | }} |
46 | </CSSTransitionGroup> | 46 | > |
47 | {children} | ||
48 | </CSSTransition> | ||
49 | </TransitionGroup> | ||
47 | ); | 50 | ); |
48 | }; | 51 | }; |
49 | 52 | ||