@@ -59,8 +59,6 @@ import ModalProvider, * as modalProvider from '#/providers/ModalProvider'
59
59
import * as navigator2DProvider from '#/providers/Navigator2DProvider'
60
60
import SessionProvider from '#/providers/SessionProvider'
61
61
import * as textProvider from '#/providers/TextProvider'
62
- import type { Spring } from 'framer-motion'
63
- import { MotionConfig } from 'framer-motion'
64
62
65
63
import ConfirmRegistration from '#/pages/authentication/ConfirmRegistration'
66
64
import ForgotPassword from '#/pages/authentication/ForgotPassword'
@@ -105,16 +103,6 @@ import { InvitedToOrganizationModal } from '#/modals/InvitedToOrganizationModal'
105
103
// === Global configuration ===
106
104
// ============================
107
105
108
- const DEFAULT_TRANSITION_OPTIONS : Spring = {
109
- type : 'spring' ,
110
- // eslint-disable-next-line @typescript-eslint/no-magic-numbers
111
- stiffness : 200 ,
112
- // eslint-disable-next-line @typescript-eslint/no-magic-numbers
113
- damping : 30 ,
114
- mass : 1 ,
115
- velocity : 0 ,
116
- }
117
-
118
106
declare module '#/utilities/LocalStorage' {
119
107
/** */
120
108
interface LocalStorageData {
@@ -532,42 +520,40 @@ function AppRouter(props: AppRouterProps) {
532
520
533
521
return (
534
522
< FeatureFlagsProvider >
535
- < MotionConfig reducedMotion = "user" transition = { DEFAULT_TRANSITION_OPTIONS } >
536
- < RouterProvider navigate = { navigate } >
537
- < SessionProvider
538
- saveAccessToken = { authService . cognito . saveAccessToken . bind ( authService . cognito ) }
539
- mainPageUrl = { mainPageUrl }
540
- userSession = { userSession }
541
- registerAuthEventListener = { registerAuthEventListener }
542
- refreshUserSession = { refreshUserSession }
543
- >
544
- < BackendProvider remoteBackend = { remoteBackend } localBackend = { localBackend } >
545
- < AuthProvider
546
- shouldStartInOfflineMode = { isAuthenticationDisabled }
547
- authService = { authService }
548
- onAuthenticated = { onAuthenticated }
549
- >
550
- < InputBindingsProvider inputBindings = { inputBindings } >
551
- { /* Ideally this would be in `Drive.tsx`, but it currently must be all the way out here
552
- * due to modals being in `TheModal`. */ }
553
- < DriveProvider >
554
- < errorBoundary . ErrorBoundary >
555
- < LocalBackendPathSynchronizer />
556
- < VersionChecker />
557
- { routes }
558
- < suspense . Suspense >
559
- < errorBoundary . ErrorBoundary >
560
- < devtools . EnsoDevtools />
561
- </ errorBoundary . ErrorBoundary >
562
- </ suspense . Suspense >
563
- </ errorBoundary . ErrorBoundary >
564
- </ DriveProvider >
565
- </ InputBindingsProvider >
566
- </ AuthProvider >
567
- </ BackendProvider >
568
- </ SessionProvider >
569
- </ RouterProvider >
570
- </ MotionConfig >
523
+ < RouterProvider navigate = { navigate } >
524
+ < SessionProvider
525
+ saveAccessToken = { authService . cognito . saveAccessToken . bind ( authService . cognito ) }
526
+ mainPageUrl = { mainPageUrl }
527
+ userSession = { userSession }
528
+ registerAuthEventListener = { registerAuthEventListener }
529
+ refreshUserSession = { refreshUserSession }
530
+ >
531
+ < BackendProvider remoteBackend = { remoteBackend } localBackend = { localBackend } >
532
+ < AuthProvider
533
+ shouldStartInOfflineMode = { isAuthenticationDisabled }
534
+ authService = { authService }
535
+ onAuthenticated = { onAuthenticated }
536
+ >
537
+ < InputBindingsProvider inputBindings = { inputBindings } >
538
+ { /* Ideally this would be in `Drive.tsx`, but it currently must be all the way out here
539
+ * due to modals being in `TheModal`. */ }
540
+ < DriveProvider >
541
+ < errorBoundary . ErrorBoundary >
542
+ < LocalBackendPathSynchronizer />
543
+ < VersionChecker />
544
+ { routes }
545
+ < suspense . Suspense >
546
+ < errorBoundary . ErrorBoundary >
547
+ < devtools . EnsoDevtools />
548
+ </ errorBoundary . ErrorBoundary >
549
+ </ suspense . Suspense >
550
+ </ errorBoundary . ErrorBoundary >
551
+ </ DriveProvider >
552
+ </ InputBindingsProvider >
553
+ </ AuthProvider >
554
+ </ BackendProvider >
555
+ </ SessionProvider >
556
+ </ RouterProvider >
571
557
</ FeatureFlagsProvider >
572
558
)
573
559
}
0 commit comments