Skip to content

Commit c4095fb

Browse files
committed
chore: breadcrumb text implements in all places
1 parent f00ea61 commit c4095fb

File tree

6 files changed

+17
-6
lines changed

6 files changed

+17
-6
lines changed

src/components/Jobs/JobDetails/JobDetails.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ import {
3737
TabGroup,
3838
URLS as CommonURLS,
3939
handleAnalyticsEvent,
40+
BreadcrumbText,
4041
} from '@devtron-labs/devtron-fe-common-lib'
4142
import AppConfig from '../../../Pages/Applications/DevtronApps/Details/AppConfigurations/AppConfig'
4243
import Overview from '../../app/Overview/Overview'
@@ -153,7 +154,7 @@ const JobHeader = ({ jobName }: { jobName: string }) => {
153154
linked: false,
154155
},
155156
app: {
156-
component: <span className="cb-5 fs-16 dc__capitalize">Jobs</span>,
157+
component: <BreadcrumbText heading="Jobs" />,
157158
linked: true,
158159
},
159160
},

src/components/ResourceBrowser/ClusterInstallationStatus.tsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,12 @@
1717
import { useMemo } from 'react'
1818
import { useHistory, useParams } from 'react-router-dom'
1919

20-
import { getInfrastructureManagementBreadcrumb, useAsync, useBreadcrumb } from '@devtron-labs/devtron-fe-common-lib'
20+
import {
21+
BreadcrumbText,
22+
getInfrastructureManagementBreadcrumb,
23+
useAsync,
24+
useBreadcrumb,
25+
} from '@devtron-labs/devtron-fe-common-lib'
2126

2227
import { importComponentFromFELibrary } from '@Components/common'
2328

@@ -62,7 +67,7 @@ const ClusterInstallationStatus = () => {
6267
alias: {
6368
...getInfrastructureManagementBreadcrumb(),
6469
'resource-browser': {
65-
component: <span className="cn-9 fs-16 fw-6 lh-24">Resource Browser</span>,
70+
component: <BreadcrumbText heading="Resource Browser" isActive />,
6671
},
6772
'installation-cluster': {
6873
component: (

src/components/ResourceBrowser/ResourceBrowser.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ import { useLocation } from 'react-router-dom'
1919

2020
import {
2121
BreadCrumb,
22+
BreadcrumbText,
2223
ClusterDetail,
2324
DevtronProgressing,
2425
ErrorScreenManager,
@@ -51,7 +52,7 @@ const ResourceBrowser: React.FC = () => {
5152
alias: {
5253
...getInfrastructureManagementBreadcrumb(),
5354
'resource-browser': {
54-
component: <span className="cn-9 fs-16 fw-6 lh-24">Resource Browser</span>,
55+
component: <BreadcrumbText heading="Resource Browser" isActive />,
5556
},
5657
},
5758
},

src/components/bulkEdits/BulkEdits.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ import yamlJsParser from 'yaml'
2323

2424
import {
2525
BreadCrumb,
26+
BreadcrumbText,
2627
BulkEditConfigV2Type,
2728
BulkEditVersion,
2829
Button,
@@ -599,7 +600,7 @@ class BulkEdits extends Component<BulkEditsProps, BulkEditsState> {
599600
{
600601
alias: {
601602
...getApplicationManagementBreadcrumb(),
602-
'bulk-edit': { component: <span className="cn-9 fs-16 fw-6 lh-24">Bulk Edit</span> },
603+
'bulk-edit': { component: <BreadcrumbText heading="Bulk Edits" isActive /> },
603604
},
604605
},
605606
[pathname],

src/components/project/ProjectList.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ import {
2727
BreadCrumb,
2828
useBreadcrumb,
2929
getApplicationManagementBreadcrumb,
30+
BreadcrumbText,
3031
} from '@devtron-labs/devtron-fe-common-lib'
3132
import { HEADER_TEXT, ViewType } from '../../config'
3233
import { createProject, getProjectList } from './service'
@@ -204,7 +205,7 @@ export default class ProjectList extends Component<ProjectListProps, ProjectList
204205
{
205206
alias: {
206207
...getApplicationManagementBreadcrumb(),
207-
projects: { component: <span className="cn-9 fs-16 fw-6 lh-24">Projects</span> },
208+
projects: { component: <BreadcrumbText heading="Projects" isActive /> },
208209
},
209210
},
210211
[pathname],

src/css/base.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1360,6 +1360,8 @@ button.anchor {
13601360

13611361
.dc__devtron-breadcrumb__item__separator {
13621362
margin: 0 4px;
1363+
font-weight: 400;
1364+
color: var(--N500);
13631365
}
13641366

13651367
.multi-chart-summary__values-select.popup-body,

0 commit comments

Comments
 (0)