Skip to content

Commit 53f45d2

Browse files
committed
feat: add support for prod non-prod in virtual cluster
1 parent e0d4dda commit 53f45d2

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

src/Pages/GlobalConfigurations/ClustersAndEnvironments/ClusterList.components.tsx

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import {
77
Button,
88
ButtonStyleType,
99
ButtonVariantType,
10+
ClusterStatusType,
1011
ComponentSizeType,
1112
Drawer,
1213
FiltersTypeEnum,
@@ -19,7 +20,6 @@ import {
1920
TableCellComponentProps,
2021
Tooltip,
2122
URLS as COMMON_URLS,
22-
ClusterStatusType,
2323
} from '@devtron-labs/devtron-fe-common-lib'
2424

2525
import { importComponentFromFELibrary } from '@Components/common'
@@ -176,7 +176,7 @@ export const ClusterListCellComponent: FunctionComponent<
176176
onClick={handleAddEnv}
177177
showTooltip
178178
tooltipProps={{
179-
content: 'Add Environment'
179+
content: 'Add Environment',
180180
}}
181181
/>
182182
<Button
@@ -190,7 +190,7 @@ export const ClusterListCellComponent: FunctionComponent<
190190
onClick={handleEditCluster}
191191
showTooltip
192192
tooltipProps={{
193-
content: 'Edit Cluster'
193+
content: 'Edit Cluster',
194194
}}
195195
/>
196196
<ActionMenu
@@ -307,6 +307,7 @@ export const EditCluster = ({ clusterList, reloadClusterList, handleClose }: Edi
307307
handleModalClose={handleClose}
308308
reload={reloadClusterList}
309309
category={cluster.category}
310+
isProd={cluster.isProd}
310311
/>
311312
)
312313
}
@@ -334,12 +335,12 @@ export const DeleteCluster = ({ clusterList, reloadClusterList, handleClose }: E
334335
export const ClusterEnvLoader = () => (
335336
<>
336337
{Array.from({ length: 3 }).map((_, idx) => (
337-
// eslint-disable-next-line react/no-array-index-key
338338
<div
339+
// eslint-disable-next-line react/no-array-index-key
339340
key={idx}
340-
className={`px-20 py-8 dc__grid environment-row ${!!VirtualClusterForm ? 'with-category' : ''} dc__align-items-center`}
341+
className={`px-20 py-8 dc__grid environment-row ${VirtualClusterForm ? 'with-category' : ''} dc__align-items-center`}
341342
>
342-
{Array.from({ length: 5 }).map((_, index) => (
343+
{Array.from({ length: 5 }).map((_val, index) => (
343344
// eslint-disable-next-line react/no-array-index-key
344345
<span key={index} className="shimmer" />
345346
))}

0 commit comments

Comments
 (0)