Skip to content

Commit a1ecee2

Browse files
committed
landing page is root url
Issue: AAH-2172
1 parent 6271928 commit a1ecee2

File tree

7 files changed

+6
-15
lines changed

7 files changed

+6
-15
lines changed

src/containers/landing/landing-page.tsx

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { t } from '@lingui/macro';
2-
32
import * as React from 'react';
43
import { SigningServiceAPI, SigningServiceType } from 'src/api';
54
import {
@@ -74,8 +73,7 @@ export class LandingPage extends React.Component<RouteProps, IState> {
7473
<LoadingPageSpinner />
7574
) : (
7675
<section className='body'>
77-
<div className='hub-list-toolbar'>
78-
</div>
76+
<div className='hub-list-toolbar'></div>
7977
</section>
8078
)}
8179
</Main>

src/containers/token/token-insights.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,9 @@ class TokenInsights extends React.Component<RouteProps, IState> {
103103
page to sync collections curated by your organization to the Red
104104
Hat Certified repository in your private Automation Hub. Users
105105
with the correct permissions can use the sync toggles on the{' '}
106-
<Link to={formatPath(Paths.collections)}>Collections</Link> page to
107-
control which collections are added to their organization&apos;s
108-
sync repository.
106+
<Link to={formatPath(Paths.collections)}>Collections</Link> page
107+
to control which collections are added to their
108+
organization&apos;s sync repository.
109109
</Trans>
110110
</p>
111111
</section>

src/loaders/insights/routes.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,6 @@ const routes = [
155155
{ path: Paths.collection, component: CollectionDetail },
156156
{ path: Paths.namespace, component: NamespaceDetail },
157157
{ path: Paths.collections, component: Search },
158-
{ path: Paths.search, component: Search },
159158
];
160159

161160
/**

src/loaders/standalone/layout.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ export const StandaloneLayout = ({
127127
<PageHeader
128128
logo={<SmallLogo alt={APPLICATION_NAME}></SmallLogo>}
129129
logoComponent={({ children }) => (
130-
<Link to={formatPath(Paths.collections)}>{children}</Link>
130+
<Link to={formatPath(Paths.landingPage)}>{children}</Link>
131131
)}
132132
headerTools={
133133
<PageHeaderTools>

src/loaders/standalone/menu.tsx

-4
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,6 @@ const menuSection = (name, options = {}, items = []) => ({
3838

3939
function standaloneMenu() {
4040
return [
41-
menuItem(t`Landing Page`, {
42-
url: formatPath(Paths.landingPage),
43-
condition: isLoggedIn,
44-
}),
4541
menuSection(t`Collections`, {}, [
4642
menuItem(t`Collections`, {
4743
url: formatPath(Paths.collections),

src/loaders/standalone/routes.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,6 @@ export class StandaloneRoutes extends React.Component<IRoutesProps> {
289289
{ component: CollectionDetail, path: Paths.collection },
290290
{ component: NamespaceDetail, path: Paths.namespace },
291291
{ component: Search, path: Paths.collections },
292-
{ component: Search, path: Paths.search },
293292
{ component: LandingPage, path: Paths.landingPage },
294293
];
295294
}

src/paths.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ export enum Paths {
8484
myImports = '/my-imports',
8585
login = '/login',
8686
logout = '/logout',
87-
search = '/',
87+
landingPage = '',
8888
legacyRole = '/legacy/roles/:username/:name',
8989
legacyRoles = '/legacy/roles/',
9090
legacyNamespace = '/legacy/namespaces/:namespaceid',
@@ -121,7 +121,6 @@ export enum Paths {
121121
taskList = '/tasks',
122122
signatureKeys = '/signature-keys',
123123
collections = '/collections',
124-
landingPage = '/landing-page',
125124
}
126125

127126
export const namespaceBreadcrumb = {

0 commit comments

Comments
 (0)