Skip to content

Commit 214da52

Browse files
evanpurkhiserwmak
authored andcommitted
fix(routes): Consistent spacing between route blocks (#44566)
Each "section" does not have blank lines
1 parent 854e0a6 commit 214da52

File tree

1 file changed

+43
-54
lines changed

1 file changed

+43
-54
lines changed

static/app/routes.tsx

Lines changed: 43 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -1000,7 +1000,6 @@ function buildRoutes() {
10001000
/>
10011001
</Fragment>
10021002
);
1003-
10041003
const projectsRoutes = (
10051004
<Fragment>
10061005
{usingCustomerDomain && (
@@ -1038,7 +1037,6 @@ function buildRoutes() {
10381037
/>
10391038
</Fragment>
10401039
);
1041-
10421040
const dashboardRoutes = (
10431041
<Fragment>
10441042
<Fragment>
@@ -1261,7 +1259,6 @@ function buildRoutes() {
12611259
</Fragment>
12621260
);
12631261
};
1264-
12651262
const alertRoutes = (
12661263
<Fragment>
12671264
{usingCustomerDomain && (
@@ -1317,7 +1314,6 @@ function buildRoutes() {
13171314
</Fragment>
13181315
);
13191316
};
1320-
13211317
const cronsRoutes = (
13221318
<Fragment>
13231319
{usingCustomerDomain && (
@@ -1348,7 +1344,6 @@ function buildRoutes() {
13481344
/>
13491345
</Fragment>
13501346
);
1351-
13521347
const replayRoutes = (
13531348
<Fragment>
13541349
{usingCustomerDomain && (
@@ -1409,7 +1404,6 @@ function buildRoutes() {
14091404
</Fragment>
14101405
);
14111406
};
1412-
14131407
const releasesRoutes = (
14141408
<Fragment>
14151409
{usingCustomerDomain && (
@@ -1482,7 +1476,6 @@ function buildRoutes() {
14821476
</Fragment>
14831477
);
14841478
};
1485-
14861479
const statsRoutes = (
14871480
<Fragment>
14881481
{usingCustomerDomain && (
@@ -1633,7 +1626,6 @@ function buildRoutes() {
16331626
/>
16341627
</Fragment>
16351628
);
1636-
16371629
const performanceRoutes = (
16381630
<Fragment>
16391631
{usingCustomerDomain && (
@@ -1754,7 +1746,6 @@ function buildRoutes() {
17541746
</Fragment>
17551747
);
17561748
};
1757-
17581749
const issueDetailsChildRoutes = ({forCustomerDomain}: {forCustomerDomain: boolean}) => (
17591750
<Fragment>
17601751
{issueTabs({forCustomerDomain})}
@@ -1914,7 +1905,6 @@ function buildRoutes() {
19141905
/>
19151906
</Fragment>
19161907
);
1917-
19181908
const gettingStartedRoutes = (
19191909
<Fragment>
19201910
{usingCustomerDomain && (
@@ -1940,6 +1930,49 @@ function buildRoutes() {
19401930
</Fragment>
19411931
);
19421932

1933+
const profilingChildRoutes = (
1934+
<Fragment>
1935+
<IndexRoute component={make(() => import('sentry/views/profiling/content'))} />
1936+
<Route
1937+
path="summary/:projectId/"
1938+
component={make(() => import('sentry/views/profiling/profileSummary'))}
1939+
/>
1940+
<Route
1941+
path="profile/:projectId/:eventId/"
1942+
component={make(() => import('sentry/views/profiling/profilesProvider'))}
1943+
>
1944+
<Route
1945+
path="details/"
1946+
component={make(() => import('sentry/views/profiling/profileDetails'))}
1947+
/>
1948+
<Route
1949+
path="flamechart/"
1950+
component={make(() => import('sentry/views/profiling/profileFlamechart'))}
1951+
/>
1952+
</Route>
1953+
</Fragment>
1954+
);
1955+
const profilingRoutes = (
1956+
<Fragment>
1957+
{usingCustomerDomain && (
1958+
<Route
1959+
path="/profiling/"
1960+
component={withDomainRequired(make(() => import('sentry/views/profiling')))}
1961+
key="orgless-profiling-route"
1962+
>
1963+
{profilingChildRoutes}
1964+
</Route>
1965+
)}
1966+
<Route
1967+
path="/organizations/:orgId/profiling/"
1968+
component={withDomainRedirect(make(() => import('sentry/views/profiling')))}
1969+
key="org-profiling"
1970+
>
1971+
{profilingChildRoutes}
1972+
</Route>
1973+
</Fragment>
1974+
);
1975+
19431976
// Support for deprecated URLs (pre-Sentry 10). We just redirect users to new
19441977
// canonical URLs.
19451978
//
@@ -2028,50 +2061,6 @@ function buildRoutes() {
20282061
</Route>
20292062
);
20302063

2031-
const profilingChildRoutes = (
2032-
<Fragment>
2033-
<IndexRoute component={make(() => import('sentry/views/profiling/content'))} />
2034-
<Route
2035-
path="summary/:projectId/"
2036-
component={make(() => import('sentry/views/profiling/profileSummary'))}
2037-
/>
2038-
<Route
2039-
path="profile/:projectId/:eventId/"
2040-
component={make(() => import('sentry/views/profiling/profilesProvider'))}
2041-
>
2042-
<Route
2043-
path="details/"
2044-
component={make(() => import('sentry/views/profiling/profileDetails'))}
2045-
/>
2046-
<Route
2047-
path="flamechart/"
2048-
component={make(() => import('sentry/views/profiling/profileFlamechart'))}
2049-
/>
2050-
</Route>
2051-
</Fragment>
2052-
);
2053-
2054-
const profilingRoutes = (
2055-
<Fragment>
2056-
{usingCustomerDomain && (
2057-
<Route
2058-
path="/profiling/"
2059-
component={withDomainRequired(make(() => import('sentry/views/profiling')))}
2060-
key="orgless-profiling-route"
2061-
>
2062-
{profilingChildRoutes}
2063-
</Route>
2064-
)}
2065-
<Route
2066-
path="/organizations/:orgId/profiling/"
2067-
component={withDomainRedirect(make(() => import('sentry/views/profiling')))}
2068-
key="org-profiling"
2069-
>
2070-
{profilingChildRoutes}
2071-
</Route>
2072-
</Fragment>
2073-
);
2074-
20752064
const organizationRoutes = (
20762065
<Route component={errorHandler(OrganizationDetails)}>
20772066
{settingsRoutes}

0 commit comments

Comments
 (0)