Skip to content

Commit

Permalink
import types from core
Browse files Browse the repository at this point in the history
  • Loading branch information
chargome committed Nov 29, 2024
1 parent 1941735 commit d6647d8
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/react/src/reactrouterv6-compat-utils.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import {
startBrowserTracingNavigationSpan,
startBrowserTracingPageLoadSpan,
} from '@sentry/browser';
import type { Client, Integration, Span, TransactionSource } from '@sentry/core';
import {
SEMANTIC_ATTRIBUTE_SENTRY_OP,
SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,
Expand All @@ -20,7 +21,6 @@ import {
logger,
spanToJSON,
} from '@sentry/core';
import type { Client, Integration, Span, TransactionSource } from '@sentry/types';
import * as React from 'react';

import hoistNonReactStatics from 'hoist-non-react-statics';
Expand Down
3 changes: 0 additions & 3 deletions packages/react/src/reactrouterv6.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
// Inspired from Donnie McNeal's solution:
// https://gist.github.com/wontondon/e8c4bdf2888875e4c755712e99279536

import type { browserTracingIntegration } from '@sentry/browser';
import type { ReactRouterOptions } from './reactrouterv6-compat-utils';
import {
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/reactrouterv7.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// React Router v7 uses the same integration as v6
import type { browserTracingIntegration } from '@sentry/browser';

import type { Integration } from '@sentry/types';
import type { Integration } from '@sentry/core';
import type { ReactRouterOptions } from './reactrouterv6-compat-utils';
import {
createReactRouterV6CompatibleTracingIntegration,
Expand Down

0 comments on commit d6647d8

Please sign in to comment.