Skip to content

Commit e6de32d

Browse files
committed
chore: unused code removed
1 parent e8ebd7c commit e6de32d

File tree

5 files changed

+8
-18
lines changed

5 files changed

+8
-18
lines changed

src/components/app/details/triggerView/TriggerView.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ import {
3636
getEnvironmentListMinPublic,
3737
CIPipelineNodeType,
3838
DocLink,
39-
DOCUMENTATION,
4039
} from '@devtron-labs/devtron-fe-common-lib'
4140
import ReactGA from 'react-ga4'
4241
import { withRouter, Route, Switch } from 'react-router-dom'

src/components/app/list-new/HelmAppList.tsx

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ import { useEffect, useMemo, useState } from 'react'
1818
import {
1919
AppStatus,
2020
showError,
21-
DOCUMENTATION,
2221
ErrorScreenManager,
2322
ServerErrors,
2423
Host,
@@ -31,6 +30,7 @@ import {
3130
stringComparatorBySortOrder,
3231
useStickyEvent,
3332
getClassNameForStickyHeaderWithShadow,
33+
DocLink,
3434
} from '@devtron-labs/devtron-fe-common-lib'
3535
import { Link } from 'react-router-dom'
3636
import Tippy from '@tippyjs/react'
@@ -65,7 +65,6 @@ import {
6565
SELECT_CLUSTER_FROM_FILTER_NOTE,
6666
appListLoadingArray,
6767
} from './Constants'
68-
import { LEARN_MORE } from '../../../config/constantMessaging'
6968
import { HELM_GUIDED_CONTENT_CARDS_TEXTS } from '../../onboardingGuide/OnboardingGuide.constants'
7069
import { HelmAppListResponse, HelmApp, AppListSortableKeys, HelmAppListProps } from './AppListType'
7170
import AskToClearFilters from './AppListComponents'
@@ -140,7 +139,7 @@ const HelmAppList = ({
140139
const { stickyElementRef, isStuck: isHeaderStuck } = useStickyEvent({
141140
identifier: 'helm-app-list',
142141
containerRef: appListContainerRef,
143-
isStickyElementMounted: dataStateType === AppListViewType.LIST && filteredListTotalSize > 0
142+
isStickyElementMounted: dataStateType === AppListViewType.LIST && filteredListTotalSize > 0,
144143
})
145144

146145
// component load
@@ -334,9 +333,10 @@ const HelmAppList = ({
334333

335334
function renderHeaders() {
336335
return (
337-
<div ref={stickyElementRef} className={`app-list__header ${
338-
getClassNameForStickyHeaderWithShadow(isHeaderStuck, 'dc__top-47')
339-
}`}>
336+
<div
337+
ref={stickyElementRef}
338+
className={`app-list__header ${getClassNameForStickyHeaderWithShadow(isHeaderStuck, 'dc__top-47')}`}
339+
>
340340
<div className="app-list__cell--icon" />
341341
<div className="app-list__cell app-list__cell--name">
342342
{sseConnection && <span>{APP_LIST_HEADERS.ReleaseName}</span>}
@@ -471,14 +471,7 @@ const HelmAppList = ({
471471
</span>
472472
<span>
473473
{SELECT_CLUSTER_FROM_FILTER_NOTE}&nbsp;
474-
<a
475-
className="dc__link cursor"
476-
target="_blank"
477-
href={DOCUMENTATION.HYPERION}
478-
rel="noreferrer"
479-
>
480-
{LEARN_MORE}
481-
</a>
474+
<DocLink docLinkKey="HYPERION" dataTestId="learn-more-about-hyperion-link" />
482475
</span>
483476
</div>
484477
</div>

src/components/charts/list/DiscoverCharts.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ import {
2020
Progressing,
2121
ConditionalWrap,
2222
DevtronProgressing,
23-
DOCUMENTATION,
2423
PageHeader,
2524
useMainContext,
2625
DetectBottom,

src/components/cluster/ClusterInfoStepsModal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
import { useState } from 'react'
1818
import Tippy from '@tippyjs/react'
19-
import { DOCUMENTATION,copyToClipboard, DocLink, noop } from '@devtron-labs/devtron-fe-common-lib'
19+
import { copyToClipboard, DocLink, noop } from '@devtron-labs/devtron-fe-common-lib'
2020
import 'tippy.js/themes/light.css'
2121
import { ReactComponent as Help } from '../../assets/icons/ic-help.svg'
2222
import './cluster.scss'

src/components/externalLinks/ExternalLinks.component.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ import {
5252
ImageWithFallback,
5353
InfoBlock,
5454
DocLink,
55-
DOCUMENTATION,
5655
} from '@devtron-labs/devtron-fe-common-lib'
5756
import './externalLinks.component.scss'
5857
import { UserRoleType } from '../../Pages/GlobalConfigurations/Authorization/constants'

0 commit comments

Comments
 (0)