Skip to content

Commit 42f8695

Browse files
committed
chore: code formatting
1 parent 0237da5 commit 42f8695

File tree

4 files changed

+16
-14
lines changed

4 files changed

+16
-14
lines changed

src/components/CIPipelineN/PluginDetailHeader/PluginDetailHeader.component.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
import { useContext } from 'react'
1818

1919
import {
20+
DOCUMENTATION,
2021
PluginImageContainer,
2122
PluginTagsContainer,
2223
PluginType,
@@ -108,7 +109,7 @@ const PluginDetailHeader = ({ handlePluginVersionChange }: PluginDetailHeaderPro
108109
showCloseButton
109110
trigger="click"
110111
interactive
111-
documentationLink={docLink as any}
112+
documentationLink={docLink as keyof typeof DOCUMENTATION}
112113
documentationLinkText="View documentation"
113114
isExternalLink
114115
>

src/components/CIPipelineN/VariableDataTable/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ export type VariableDataTableAction<
138138

139139
export type HandleRowUpdateActionProps = VariableDataTableAction
140140

141-
export interface VariableDataTablePopupMenuProps extends Pick<TippyCustomizedProps, 'placement'> {
141+
export interface VariableDataTablePopupMenuProps extends Pick<TippyCustomizedProps<false>, 'placement'> {
142142
heading: string
143143
showHeaderIcon?: boolean
144144
showIconDot?: boolean

src/components/charts/list/DiscoverCharts.tsx

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,8 @@ const DiscoverChartList = ({ isSuperAdmin }: { isSuperAdmin: boolean }) => {
131131
const [isLoading, setIsLoading] = useState<boolean>(false)
132132
const [filteredChartList, setFilteredChartList] = useState<ChartListType[]>([])
133133

134-
const noChartAvailable: boolean = chartList.length > 0 || searchApplied || selectedChartRepo.length > 0 || !!chartCategoryIds
134+
const noChartAvailable: boolean =
135+
chartList.length > 0 || searchApplied || selectedChartRepo.length > 0 || !!chartCategoryIds
135136
isLeavingPageNotAllowed.current = !state.charts.reduce((acc: boolean, chart: ChartGroupEntry) => {
136137
return (acc = acc && chart.originalValuesYaml === chart.valuesYaml)
137138
}, true)
@@ -752,15 +753,15 @@ const ChartListHeader = ({ charts }) => {
752753
</h3>
753754
<p className="mb-0 mt-4 pl-20" data-testid="chart-store-list-subheading">
754755
Select chart to deploy. &nbsp;
755-
<a
756-
href={getDocumentationUrl({ docLinkKey: 'CHART_GROUP' })}
757-
rel="noreferrer noopener"
758-
target="_blank"
759-
className="dc__link"
760-
data-testid="chart-group-link"
761-
>
762-
Learn more about chart groups
763-
</a>
756+
<a
757+
href={getDocumentationUrl({ docLinkKey: 'CHART_GROUP' })}
758+
rel="noreferrer noopener"
759+
target="_blank"
760+
className="dc__link"
761+
data-testid="chart-group-link"
762+
>
763+
Learn more about chart groups
764+
</a>
764765
</p>
765766
</div>
766767
)
@@ -852,7 +853,7 @@ export const ChartGroupListMin = ({
852853
renderDescriptionContent={() =>
853854
'Use chart groups to pre-configure and deploy frequently used charts together.'
854855
}
855-
docLink='CHART_GROUP'
856+
docLink="CHART_GROUP"
856857
dataTestId="chart-store"
857858
showInfoIconTippy
858859
/>

src/components/globalConfigurations/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import { HTMLAttributes, MutableRefObject } from 'react'
1919
import { TippyCustomizedProps } from '@devtron-labs/devtron-fe-common-lib'
2020

2121
export type TippyConfig =
22-
| (Omit<TippyCustomizedProps, 'theme' | 'children' | 'placement'> & {
22+
| (Omit<TippyCustomizedProps<false>, 'theme' | 'children' | 'placement'> & {
2323
showTippy: true
2424
/**
2525
* The nav link route on which the Tippy should be shown

0 commit comments

Comments
 (0)