File tree Expand file tree Collapse file tree 1 file changed +15
-7
lines changed Expand file tree Collapse file tree 1 file changed +15
-7
lines changed Original file line number Diff line number Diff line change @@ -29,8 +29,6 @@ import Sidebar from "../layout/Sidebar/Sidebar";
29
29
import Navigation from "./Navigation/Navigation" ;
30
30
import SplashingScreen from "../layout/SplashingScreen/SplashingScreen" ;
31
31
32
- // import SideDrawer from "../layout/SideDrawer/SideDrawer";
33
-
34
32
// Actions
35
33
import { loadUser } from "../actions/auth-actions" ;
36
34
@@ -83,11 +81,21 @@ function AuthorizedRoutes() {
83
81
// Transition animation
84
82
// eslint-disable-next-line no-shadow
85
83
const transitions = useTransition ( location , ( location ) => location . pathname , {
86
- from : {
87
- opacity : 0 ,
88
- transform : "scale(0.9)" ,
89
- width : "100%" ,
90
- height : "100%" ,
84
+ from : ( item ) => {
85
+ if ( item ?. state ?. fromCreateDm ) {
86
+ return {
87
+ opacity : 1 ,
88
+ transform : "scale(1)" ,
89
+ width : "100%" ,
90
+ height : "100%" ,
91
+ } ;
92
+ }
93
+ return {
94
+ opacity : 0 ,
95
+ transform : "scale(0.9)" ,
96
+ width : "100%" ,
97
+ height : "100%" ,
98
+ } ;
91
99
} ,
92
100
enter : {
93
101
opacity : 1 ,
You can’t perform that action at this time.
0 commit comments