diff --git a/plugins/cad/src/components/AddPackagePage/AddPackagePage.tsx b/plugins/cad/src/components/AddPackagePage/AddPackagePage.tsx index ef86e933..ebe4fa47 100644 --- a/plugins/cad/src/components/AddPackagePage/AddPackagePage.tsx +++ b/plugins/cad/src/components/AddPackagePage/AddPackagePage.tsx @@ -63,7 +63,7 @@ import { sortByLabel } from '../../utils/selectItem'; import { emptyIfUndefined, toLowerCase } from '../../utils/string'; import { dumpYaml, loadYaml } from '../../utils/yaml'; import { Checkbox, Select } from '../Controls'; -import { PackageLink, RepositoriesLink, RepositoryLink } from '../Links'; +import { LandingPageLink, PackageLink, RepositoryLink } from '../Links'; import { applyNamespaceState, getNamespaceDefaultState, @@ -503,7 +503,7 @@ export const AddPackagePage = ({ action }: AddPackagePageProps) => { {isCloneNamedPackageAction && ( - + { {isAddPackageAction && ( - + { @@ -77,7 +77,7 @@ export const LandingPage = () => { return ( - } /> + } /> } diff --git a/plugins/cad/src/components/Links/RepositoriesLink.tsx b/plugins/cad/src/components/Links/LandingPageLink.tsx similarity index 82% rename from plugins/cad/src/components/Links/RepositoriesLink.tsx rename to plugins/cad/src/components/Links/LandingPageLink.tsx index 8baed3c2..c39ec839 100644 --- a/plugins/cad/src/components/Links/RepositoriesLink.tsx +++ b/plugins/cad/src/components/Links/LandingPageLink.tsx @@ -24,15 +24,15 @@ type RepositoriesLinkProps = { breadcrumb?: boolean; }; -export const RepositoriesLink = ({ breadcrumb }: RepositoriesLinkProps) => { - const repositoriesRef = useRouteRef(rootRouteRef); +export const LandingPageLink = ({ breadcrumb }: RepositoriesLinkProps) => { + const packageManagementRef = useRouteRef(rootRouteRef); const classes = useLinkStyles(); const className = breadcrumb ? classes.breadcrumb : ''; return ( - - Repositories + + Package Management ); }; diff --git a/plugins/cad/src/components/Links/index.ts b/plugins/cad/src/components/Links/index.ts index 1b382517..b6d6a5a6 100644 --- a/plugins/cad/src/components/Links/index.ts +++ b/plugins/cad/src/components/Links/index.ts @@ -14,6 +14,6 @@ * limitations under the License. */ -export { RepositoriesLink } from './RepositoriesLink'; +export { LandingPageLink } from './LandingPageLink'; export { RepositoryLink } from './RepositoryLink'; export { PackageLink } from './PackageLink'; diff --git a/plugins/cad/src/components/RepositoryListPage/RepositoryListPage.tsx b/plugins/cad/src/components/PackageManagementPage/PackageManagementPage.tsx similarity index 96% rename from plugins/cad/src/components/RepositoryListPage/RepositoryListPage.tsx rename to plugins/cad/src/components/PackageManagementPage/PackageManagementPage.tsx index b7ecc04f..9d26d617 100644 --- a/plugins/cad/src/components/RepositoryListPage/RepositoryListPage.tsx +++ b/plugins/cad/src/components/PackageManagementPage/PackageManagementPage.tsx @@ -49,7 +49,7 @@ export const useStyles = makeStyles({ }, }); -export const RepositoryListPage = () => { +export const PackageManagementPage = () => { const classes = useStyles(); const api = useApi(configAsDataApiRef); @@ -93,10 +93,10 @@ export const RepositoryListPage = () => { return (
- Repositories + Package Management - +