Skip to content

Commit 59516ec

Browse files
evanpurkhiserarmenzg
authored andcommitted
ref(routes): A few more routes using withOrgPath (#70449)
1 parent a979858 commit 59516ec

File tree

1 file changed

+9
-38
lines changed

1 file changed

+9
-38
lines changed

static/app/routes.tsx

Lines changed: 9 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -209,38 +209,16 @@ function buildRoutes() {
209209
path="/organizations/new/"
210210
component={make(() => import('sentry/views/organizationCreate'))}
211211
/>
212-
{USING_CUSTOMER_DOMAIN && (
213-
<Route
214-
path="/data-export/:dataExportId"
215-
component={withDomainRequired(
216-
make(() => import('sentry/views/dataExport/dataDownload'))
217-
)}
218-
key="orgless-data-export-route"
219-
/>
220-
)}
221212
<Route
222-
path="/organizations/:orgId/data-export/:dataExportId"
223-
component={withDomainRedirect(
224-
make(() => import('sentry/views/dataExport/dataDownload'))
225-
)}
226-
key="org-data-export"
213+
path="/data-export/:dataExportId"
214+
component={make(() => import('sentry/views/dataExport/dataDownload'))}
215+
withOrgPath
227216
/>
228217
<Route component={errorHandler(OrganizationContainer)}>
229-
{USING_CUSTOMER_DOMAIN && (
230-
<Route
231-
path="/disabled-member/"
232-
component={withDomainRequired(
233-
make(() => import('sentry/views/disabledMember'))
234-
)}
235-
key="orgless-disabled-member-route"
236-
/>
237-
)}
238218
<Route
239-
path="/organizations/:orgId/disabled-member/"
240-
component={withDomainRedirect(
241-
make(() => import('sentry/views/disabledMember'))
242-
)}
243-
key="org-disabled-member"
219+
path="/disabled-member/"
220+
component={make(() => import('sentry/views/disabledMember'))}
221+
withOrgPath
244222
/>
245223
</Route>
246224
{USING_CUSTOMER_DOMAIN && (
@@ -298,17 +276,10 @@ function buildRoutes() {
298276
<IndexRedirect to="welcome/" />
299277
<Route path=":step/" component={make(() => import('sentry/views/onboarding'))} />
300278
</Route>
301-
{USING_CUSTOMER_DOMAIN && (
302-
<Route
303-
path="/stories/"
304-
component={make(() => import('sentry/views/stories/index'))}
305-
key="orgless-stories"
306-
/>
307-
)}
308279
<Route
309-
path="/organizations/:orgId/stories/"
310-
component={withDomainRedirect(make(() => import('sentry/views/stories/index')))}
311-
key="org-stories"
280+
path="/stories/"
281+
component={make(() => import('sentry/views/stories/index'))}
282+
withOrgPath
312283
/>
313284
</Fragment>
314285
);

0 commit comments

Comments
 (0)