diff --git a/static/app/routes.tsx b/static/app/routes.tsx index cbc46442c24669..8b8fc4f39208e4 100644 --- a/static/app/routes.tsx +++ b/static/app/routes.tsx @@ -2510,7 +2510,6 @@ function buildRoutes(): RouteObject[] { component: make(() => import('sentry/views/feedback/index')), withOrgPath: true, children: feedbackV2Children, - deprecatedRouteProps: true, }; const issueTabs: SentryRouteObject[] = [ @@ -2638,7 +2637,6 @@ function buildRoutes(): RouteObject[] { path: 'feedback/', component: make(() => import('sentry/views/feedback/index')), children: feedbackV2Children, - deprecatedRouteProps: true, }, { path: 'alerts/', diff --git a/static/app/views/feedback/index.tsx b/static/app/views/feedback/index.tsx index bce72ded59a10d..459b4d478f91c9 100644 --- a/static/app/views/feedback/index.tsx +++ b/static/app/views/feedback/index.tsx @@ -1,15 +1,12 @@ +import {Outlet} from 'react-router-dom'; + import AnalyticsArea from 'sentry/components/analyticsArea'; import NoProjectMessage from 'sentry/components/noProjectMessage'; import Redirect from 'sentry/components/redirect'; -import type {RouteComponentProps} from 'sentry/types/legacyReactRouter'; import useOrganization from 'sentry/utils/useOrganization'; import {useRedirectNavV2Routes} from 'sentry/views/nav/useRedirectNavV2Routes'; -type Props = RouteComponentProps & { - children: React.ReactNode; -}; - -export default function FeedbackContainer({children}: Props) { +export default function FeedbackContainer() { const organization = useOrganization(); const redirectPath = useRedirectNavV2Routes({ @@ -23,7 +20,9 @@ export default function FeedbackContainer({children}: Props) { return ( - {children} + + + ); }