Skip to content

Commit 57f67dc

Browse files
committed
code refactoring
1 parent 74bf2d7 commit 57f67dc

File tree

1 file changed

+13
-16
lines changed

1 file changed

+13
-16
lines changed

src/components/v2/values/chartValuesDiff/ChartValuesView.tsx

Lines changed: 13 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1561,22 +1561,19 @@ const ChartValuesView = ({
15611561
})
15621562
}
15631563

1564-
const renderConnectToHelmChartInfoBlock = (): JSX.Element => {
1565-
return (
1566-
<InfoBlock
1567-
description={CONNECT_TO_HELM_CHART_TEXTS.Message}
1568-
layout="column"
1569-
buttonProps={{
1570-
text: 'Connect to helm chart',
1571-
onClick: handleConnectToChartClick,
1572-
variant: ButtonVariantType.text,
1573-
dataTestId: 'connect-to-helm-chart-button',
1574-
startIcon: <LinkIcon className="connect-to-chart-icon icon-dim-16" />,
1575-
1576-
}}
1577-
/>
1578-
)
1579-
}
1564+
const renderConnectToHelmChartInfoBlock = () => (
1565+
<InfoBlock
1566+
description={CONNECT_TO_HELM_CHART_TEXTS.Message}
1567+
layout="column"
1568+
buttonProps={{
1569+
text: 'Connect to helm chart',
1570+
onClick: handleConnectToChartClick,
1571+
variant: ButtonVariantType.text,
1572+
dataTestId: 'connect-to-helm-chart-button',
1573+
startIcon: <LinkIcon className="connect-to-chart-icon icon-dim-16" />,
1574+
}}
1575+
/>
1576+
)
15801577

15811578
const getHelmAppMetaInfoRes = async (): Promise<void> => {
15821579
try {

0 commit comments

Comments
 (0)