Skip to content

Commit 032bacd

Browse files
committed
fix lint errors
1 parent a908d80 commit 032bacd

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

packages/react-router/src/ReactRouter/StackManager.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import {
2+
AnimationBuilder,
23
RouteInfo,
34
RouteManagerContext,
45
StackContext,
56
StackContextState,
67
ViewItem,
78
generateId,
89
getConfig,
9-
AnimationBuilder,
1010
iosTransitionAnimation,
1111
} from '@ionic/react';
1212
import React from 'react';
@@ -207,14 +207,14 @@ export class StackManager extends React.PureComponent<StackManagerProps, StackMa
207207

208208
const routeInfo = this.props.routeInfo;
209209
const routerAnimation = routeInfo.routeAnimation;
210-
210+
211211
const outletId = this.id;
212212
const enteringViewItem = this.context.findViewItemByPathname(routeInfo.pushedByRoute || '', outletId);
213213
const leavingViewItem = this.context.findViewItemByRouteInfo(routeInfo, outletId);
214-
214+
215215
if (leavingViewItem) {
216216
const defaultAnimationBuilder = routerOutlet.mode === 'ios' ? iosTransitionAnimation : undefined;
217-
let animationBuilder = routerAnimation ?? defaultAnimationBuilder;
217+
const animationBuilder = routerAnimation ?? defaultAnimationBuilder;
218218
const enteringEl = enteringViewItem?.ionPageElement;
219219
const leavingEl = leavingViewItem.ionPageElement;
220220

@@ -305,7 +305,7 @@ export class StackManager extends React.PureComponent<StackManagerProps, StackMa
305305
leavingViewItem?: ViewItem
306306
) {
307307
const routerOutlet = this.routerOutletElement!;
308-
308+
309309
// HACK: when swiping back, the transition has already happened.
310310
// This flag prevents a redundant transition after the swipe completes.
311311
const { skipTransition } = this;

0 commit comments

Comments
 (0)