feat(sentry): remove sentry integration

This commit is contained in:
Amruth Pillai
2022-12-16 14:34:15 +01:00
parent 9af9a0284e
commit bf41aa9c6c
24 changed files with 1049 additions and 1538 deletions

View File

@ -1,17 +0,0 @@
import * as Sentry from '@sentry/nextjs';
import { useEffect } from 'react';
import { useAppSelector } from '@/store/hooks';
const SentryWrapper: React.FC<React.PropsWithChildren<unknown>> = ({ children }) => {
const user = useAppSelector((state) => state.auth.user);
useEffect(() => {
const sentryUser: Sentry.User | null = user && { ...user, id: user?.id.toString() };
Sentry.setUser(sentryUser);
}, [user]);
return <>{children}</>;
};
export default SentryWrapper;

View File

@ -1,15 +1,12 @@
import DateWrapper from './DateWrapper';
import FontWrapper from './FontWrapper';
import SentryWrapper from './SentryWrapper';
import ThemeWrapper from './ThemeWrapper';
const WrapperRegistry: React.FC<React.PropsWithChildren<unknown>> = ({ children }) => (
<ThemeWrapper>
<FontWrapper>
<DateWrapper>
<SentryWrapper>
<>{children}</>
</SentryWrapper>
<>{children}</>
</DateWrapper>
</FontWrapper>
</ThemeWrapper>