diff --git a/src/SyncGate.tsx b/src/SyncGate.tsx index 6ea751c..4ea2d4c 100644 --- a/src/SyncGate.tsx +++ b/src/SyncGate.tsx @@ -78,6 +78,9 @@ const syncInfoSelector = createSelector( }, ); +const PimRouter = withRouter(Pim); +const JournalRouter = withRouter(Journal); + class SyncGate extends React.PureComponent { props: PropsTypeInner; @@ -135,9 +138,6 @@ class SyncGate extends React.PureComponent { const journalMap = syncInfoSelector(this.props); - const PimRouter = withRouter(Pim); - const JournalRouter = withRouter(Journal); - return (