Skip to content

Commit 15255ac

Browse files
authored
fix(feedback): Remove deprecated props from feedback index (#101180)
1 parent 13c8a7c commit 15255ac

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

static/app/routes.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2510,7 +2510,6 @@ function buildRoutes(): RouteObject[] {
25102510
component: make(() => import('sentry/views/feedback/index')),
25112511
withOrgPath: true,
25122512
children: feedbackV2Children,
2513-
deprecatedRouteProps: true,
25142513
};
25152514

25162515
const issueTabs: SentryRouteObject[] = [
@@ -2638,7 +2637,6 @@ function buildRoutes(): RouteObject[] {
26382637
path: 'feedback/',
26392638
component: make(() => import('sentry/views/feedback/index')),
26402639
children: feedbackV2Children,
2641-
deprecatedRouteProps: true,
26422640
},
26432641
{
26442642
path: 'alerts/',
Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
1+
import {Outlet} from 'react-router-dom';
2+
13
import AnalyticsArea from 'sentry/components/analyticsArea';
24
import NoProjectMessage from 'sentry/components/noProjectMessage';
35
import Redirect from 'sentry/components/redirect';
4-
import type {RouteComponentProps} from 'sentry/types/legacyReactRouter';
56
import useOrganization from 'sentry/utils/useOrganization';
67
import {useRedirectNavV2Routes} from 'sentry/views/nav/useRedirectNavV2Routes';
78

8-
type Props = RouteComponentProps & {
9-
children: React.ReactNode;
10-
};
11-
12-
export default function FeedbackContainer({children}: Props) {
9+
export default function FeedbackContainer() {
1310
const organization = useOrganization();
1411

1512
const redirectPath = useRedirectNavV2Routes({
@@ -23,7 +20,9 @@ export default function FeedbackContainer({children}: Props) {
2320

2421
return (
2522
<AnalyticsArea name="feedback">
26-
<NoProjectMessage organization={organization}>{children}</NoProjectMessage>
23+
<NoProjectMessage organization={organization}>
24+
<Outlet />
25+
</NoProjectMessage>
2726
</AnalyticsArea>
2827
);
2928
}

0 commit comments

Comments
 (0)