File tree Expand file tree Collapse file tree 2 files changed +6
-9
lines changed Expand file tree Collapse file tree 2 files changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -2510,7 +2510,6 @@ function buildRoutes(): RouteObject[] {
2510
2510
component : make ( ( ) => import ( 'sentry/views/feedback/index' ) ) ,
2511
2511
withOrgPath : true ,
2512
2512
children : feedbackV2Children ,
2513
- deprecatedRouteProps : true ,
2514
2513
} ;
2515
2514
2516
2515
const issueTabs : SentryRouteObject [ ] = [
@@ -2638,7 +2637,6 @@ function buildRoutes(): RouteObject[] {
2638
2637
path : 'feedback/' ,
2639
2638
component : make ( ( ) => import ( 'sentry/views/feedback/index' ) ) ,
2640
2639
children : feedbackV2Children ,
2641
- deprecatedRouteProps : true ,
2642
2640
} ,
2643
2641
{
2644
2642
path : 'alerts/' ,
Original file line number Diff line number Diff line change
1
+ import { Outlet } from 'react-router-dom' ;
2
+
1
3
import AnalyticsArea from 'sentry/components/analyticsArea' ;
2
4
import NoProjectMessage from 'sentry/components/noProjectMessage' ;
3
5
import Redirect from 'sentry/components/redirect' ;
4
- import type { RouteComponentProps } from 'sentry/types/legacyReactRouter' ;
5
6
import useOrganization from 'sentry/utils/useOrganization' ;
6
7
import { useRedirectNavV2Routes } from 'sentry/views/nav/useRedirectNavV2Routes' ;
7
8
8
- type Props = RouteComponentProps & {
9
- children : React . ReactNode ;
10
- } ;
11
-
12
- export default function FeedbackContainer ( { children} : Props ) {
9
+ export default function FeedbackContainer ( ) {
13
10
const organization = useOrganization ( ) ;
14
11
15
12
const redirectPath = useRedirectNavV2Routes ( {
@@ -23,7 +20,9 @@ export default function FeedbackContainer({children}: Props) {
23
20
24
21
return (
25
22
< AnalyticsArea name = "feedback" >
26
- < NoProjectMessage organization = { organization } > { children } </ NoProjectMessage >
23
+ < NoProjectMessage organization = { organization } >
24
+ < Outlet />
25
+ </ NoProjectMessage >
27
26
</ AnalyticsArea >
28
27
) ;
29
28
}
You can’t perform that action at this time.
0 commit comments