From 92d1c26006960275ead9a99c41a55d84c5d8f2ab Mon Sep 17 00:00:00 2001 From: Scott Cooper Date: Wed, 8 Oct 2025 11:38:16 -0700 Subject: [PATCH] fix(feedback): Remove deprecated props from feedback index Only using children instead of output --- static/app/routes.tsx | 2 -- static/app/views/feedback/index.tsx | 13 ++++++------- 2 files changed, 6 insertions(+), 9 deletions(-) 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} + + + ); }