@@ -2,7 +2,7 @@ import React from 'react';
22import { SWRConfig } from 'swr' ;
33import { request } from 'graphql-request' ;
44
5- import { Redirect , Route , Switch } from 'react-router-dom' ;
5+ import { Redirect , Switch } from 'react-router-dom' ;
66import loadable from '@loadable/component' ;
77import { Layout } from 'antd' ;
88import { ConnectedRouter } from 'connected-react-router' ;
@@ -15,7 +15,7 @@ import Footer from '~/layout/Footer';
1515import Navbar from '~/layout/Header/Navbar' ;
1616import { DrawerMenu } from '~/layout/Header/Menu' ;
1717
18- import { history } from '~/store' ;
18+ import { history , SentryRoute } from '~/store' ;
1919import Content from './Content' ;
2020import Web3ConnectionManager from '~/components/Web3ConnectionManager' ;
2121import GlobalWarnings from '~/components/GlobalWarnings' ;
@@ -67,30 +67,30 @@ export default function MainRouter() {
6767 < TranslatorSkillsProvider >
6868 < Content >
6969 < Switch >
70- < Route exact path = { r . ROOT } >
70+ < SentryRoute exact path = { r . ROOT } >
7171 < Redirect to = { r . HOME } />
72- </ Route >
73- < Route exact path = { r . HOME } >
72+ </ SentryRoute >
73+ < SentryRoute exact path = { r . HOME } >
7474 < Home />
75- </ Route >
76- < Route exact path = { r . FAQ } >
75+ </ SentryRoute >
76+ < SentryRoute exact path = { r . FAQ } >
7777 < Faq />
78- </ Route >
79- < Route exact path = { r . TRANSLATOR_DASHBOARD } >
78+ </ SentryRoute >
79+ < SentryRoute exact path = { r . TRANSLATOR_DASHBOARD } >
8080 < TranslatorDashboard />
81- </ Route >
82- < Route exact path = { r . TRANSLATOR_SETTINGS } >
81+ </ SentryRoute >
82+ < SentryRoute exact path = { r . TRANSLATOR_SETTINGS } >
8383 < TranslatorSettings />
84- </ Route >
85- < Route exact path = { r . TRANSLATION_REQUEST } >
84+ </ SentryRoute >
85+ < SentryRoute exact path = { r . TRANSLATION_REQUEST } >
8686 < TranslationRequest />
87- </ Route >
88- < Route exact path = { r . REQUESTER_DASHBOARD } >
87+ </ SentryRoute >
88+ < SentryRoute exact path = { r . REQUESTER_DASHBOARD } >
8989 < RequesterDashboard />
90- </ Route >
91- < Route exact path = { r . TRANSLATION_TASK_DETAILS } >
90+ </ SentryRoute >
91+ < SentryRoute exact path = { r . TRANSLATION_TASK_DETAILS } >
9292 < TranslationDetails />
93- </ Route >
93+ </ SentryRoute >
9494 </ Switch >
9595 </ Content >
9696 </ TranslatorSkillsProvider >
0 commit comments