Skip to content

Commit b6c5e78

Browse files
ref(rr6): Remove RouteWithName export (#96563)
1 parent c070fb6 commit b6c5e78

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

static/app/types/legacyReactRouter.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ interface IndexRouteProps<Props = any> {
1212
props?: Props | undefined;
1313
}
1414

15-
export interface RouteProps<Props = any> extends IndexRouteProps<Props> {
15+
interface RouteProps<Props = any> extends IndexRouteProps<Props> {
1616
children?: React.ReactNode;
1717
path?: string | undefined;
1818
}

static/app/views/settings/components/settingsBreadcrumb/types.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
import type {RouteComponentProps, RouteProps} from 'sentry/types/legacyReactRouter';
1+
import type {RouteComponentProps} from 'sentry/types/legacyReactRouter';
22

33
// TODO(ts): The `name` attribute doesn't appear on any of the react router route types
44

5-
export type RouteWithName = RouteProps & {
5+
export interface RouteWithName {
66
name?: string;
7-
};
7+
path?: string;
8+
}
89

910
export type SettingsBreadcrumbProps = Pick<RouteComponentProps, 'route' | 'routes'> & {
1011
isLast: boolean;

0 commit comments

Comments
 (0)