remove sentry
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
import * as Sentry from '@sentry/react';
|
||||
import { OverlayProvider } from 'overlay-kit';
|
||||
import { lazy } from 'react';
|
||||
import {
|
||||
@@ -15,8 +14,6 @@ import { SubLayout } from '@/widgets/sub-layout';
|
||||
import { ROUTE_NAMES } from '@/shared/constants/route-names';
|
||||
import { toCamelCase } from '@/shared/lib/to-camel-case';
|
||||
|
||||
const sentryCreateBrowserRouter = Sentry.wrapCreateBrowserRouterV6(createBrowserRouter);
|
||||
|
||||
const modules = import.meta.glob('~/pages/**/*.tsx');
|
||||
|
||||
const lazyLoad = (path: string) => {
|
||||
@@ -47,13 +44,12 @@ const XkeypadPage = lazyLoad('/src/pages/xkeypad/xkeypad-page');
|
||||
const XkeypadSample = lazyLoad('/src/pages/xkeypad/xkeypad-sample');
|
||||
const TaxInvoicePages = lazyLoad('/src/pages/tax-invoice/tax-invoice-pages');
|
||||
|
||||
export const SentryRoutes = Sentry.withSentryReactRouterV6Routing(Routes);
|
||||
const Pages = () => {
|
||||
return (
|
||||
<OverlayProvider>
|
||||
<GlobalAPIErrorBoundary>
|
||||
<AppChildren />
|
||||
<SentryRoutes>
|
||||
<Routes>
|
||||
<Route element={<SubLayout />}>
|
||||
<Route element={<ProtectedRoute />}>
|
||||
<Route path={ROUTE_NAMES.home} element={<HomePage />} />
|
||||
@@ -73,13 +69,13 @@ const Pages = () => {
|
||||
</Route>
|
||||
<Route path="*" element={<NotFoundError />} />
|
||||
</Route>
|
||||
</SentryRoutes>
|
||||
</Routes>
|
||||
</GlobalAPIErrorBoundary>
|
||||
</OverlayProvider>
|
||||
);
|
||||
};
|
||||
|
||||
export const router = sentryCreateBrowserRouter([
|
||||
export const router = createBrowserRouter([
|
||||
{
|
||||
path: '/',
|
||||
element: <Navigate to={ROUTE_NAMES.home} />,
|
||||
@@ -2,7 +2,7 @@ import { RouterState } from '@remix-run/router';
|
||||
import { useEffect } from 'react';
|
||||
import { NavigationType } from 'react-router';
|
||||
|
||||
import { router } from '@/shared/configs/sentry';
|
||||
import { router } from '@/shared/configs/router';
|
||||
|
||||
type IRouterListener = (state: RouterState) => void;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user