mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2025-11-13 16:22:59 +10:00
feat(sentry): remove sentry integration
This commit is contained in:
@ -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;
|
||||
@ -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>
|
||||
|
||||
Reference in New Issue
Block a user