From 953cda1da5139483374c898f62a4bf280e17c6cb Mon Sep 17 00:00:00 2001 From: Philippe Perrin Date: Thu, 21 Nov 2019 17:43:00 +0100 Subject: [PATCH] Rename ComponentBreadcrumb to just Breadcrumb --- .../nav/component/{ComponentBreadcrumb.tsx => Breadcrumb.tsx} | 4 ++-- .../src/main/js/app/components/nav/component/Header.tsx | 4 ++-- .../{ComponentBreadcrumb-test.tsx => Breadcrumb-test.tsx} | 4 ++-- ...onentBreadcrumb-test.tsx.snap => Breadcrumb-test.tsx.snap} | 0 .../component/__tests__/__snapshots__/Header-test.tsx.snap | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) rename server/sonar-web/src/main/js/app/components/nav/component/{ComponentBreadcrumb.tsx => Breadcrumb.tsx} (96%) rename server/sonar-web/src/main/js/app/components/nav/component/__tests__/{ComponentBreadcrumb-test.tsx => Breadcrumb-test.tsx} (95%) rename server/sonar-web/src/main/js/app/components/nav/component/__tests__/__snapshots__/{ComponentBreadcrumb-test.tsx.snap => Breadcrumb-test.tsx.snap} (100%) diff --git a/server/sonar-web/src/main/js/app/components/nav/component/ComponentBreadcrumb.tsx b/server/sonar-web/src/main/js/app/components/nav/component/Breadcrumb.tsx similarity index 96% rename from server/sonar-web/src/main/js/app/components/nav/component/ComponentBreadcrumb.tsx rename to server/sonar-web/src/main/js/app/components/nav/component/Breadcrumb.tsx index c25c21679ad..b608d6484a6 100644 --- a/server/sonar-web/src/main/js/app/components/nav/component/ComponentBreadcrumb.tsx +++ b/server/sonar-web/src/main/js/app/components/nav/component/Breadcrumb.tsx @@ -30,7 +30,7 @@ interface Props { currentBranchLike: BranchLike | undefined; } -export function ComponentBreadcrumb(props: Props) { +export function Breadcrumb(props: Props) { const { component: { breadcrumbs }, currentBranchLike @@ -69,4 +69,4 @@ export function ComponentBreadcrumb(props: Props) { ); } -export default React.memo(ComponentBreadcrumb); +export default React.memo(Breadcrumb); diff --git a/server/sonar-web/src/main/js/app/components/nav/component/Header.tsx b/server/sonar-web/src/main/js/app/components/nav/component/Header.tsx index 0ed44b073ce..fcc7175f6f8 100644 --- a/server/sonar-web/src/main/js/app/components/nav/component/Header.tsx +++ b/server/sonar-web/src/main/js/app/components/nav/component/Header.tsx @@ -26,7 +26,7 @@ import { getCurrentUser, Store } from '../../../../store/rootReducer'; import { BranchLike } from '../../../../types/branch-like'; import BranchLikeNavigation from './branch-like/BranchLikeNavigation'; import CurrentBranchLikeMergeInformation from './branch-like/CurrentBranchLikeMergeInformation'; -import { ComponentBreadcrumb } from './ComponentBreadcrumb'; +import { Breadcrumb } from './Breadcrumb'; export interface HeaderProps { branchLikes: BranchLike[]; @@ -42,7 +42,7 @@ export function Header(props: HeaderProps) { <>
- + {isLoggedIn(currentUser) && ( { const wrapper = shallowRender(); @@ -31,7 +31,7 @@ it('should render correctly', () => { function shallowRender() { return shallow( - -