@@ -8,23 +8,18 @@ import {
88} from '@linode/ui' ;
99import { pluralize } from '@linode/utilities' ;
1010import * as React from 'react' ;
11- import { useFormContext , useWatch } from 'react-hook-form' ;
1211
1312import { DisplayPrice } from 'src/components/DisplayPrice' ;
1413import { EnhancedNumberInput } from 'src/components/EnhancedNumberInput/EnhancedNumberInput' ;
1514import { StyledLinkButtonBox } from 'src/components/SelectFirewallPanel/SelectFirewallPanel' ;
1615import {
1716 MAX_NODES_PER_POOL_ENTERPRISE_TIER ,
1817 MAX_NODES_PER_POOL_STANDARD_TIER ,
19- UPDATE_STRATEGY_OPTIONS ,
2018} from 'src/features/Kubernetes/constants' ;
2119
2220import { useIsLkeEnterpriseEnabled } from '../kubeUtils' ;
2321
24- import type {
25- CreateClusterFormValues ,
26- NodePoolConfigDrawerHandlerParams ,
27- } from '../CreateCluster/CreateCluster' ;
22+ import type { NodePoolConfigDrawerHandlerParams } from '../CreateCluster/CreateCluster' ;
2823import type { KubernetesTier } from '@linode/api-v4' ;
2924import type { ExtendedType } from 'src/utilities/extendType' ;
3025
@@ -53,13 +48,6 @@ export const NodePoolSummaryItem = React.memo((props: Props) => {
5348
5449 const { isLkeEnterprisePostLAFeatureEnabled } = useIsLkeEnterpriseEnabled ( ) ;
5550
56- const { control } = useFormContext < CreateClusterFormValues > ( ) ;
57- const nodePoolsWatcher = useWatch ( {
58- control,
59- name : 'nodePools' ,
60- } ) ;
61- const thisPool = nodePoolsWatcher [ poolIndex ] ;
62-
6351 // This should never happen but TS wants us to account for the situation
6452 // where we fail to match a selected type against our types list.
6553 if ( poolType === null ) {
@@ -78,13 +66,6 @@ export const NodePoolSummaryItem = React.memo((props: Props) => {
7866 { pluralize ( 'CPU' , 'CPUs' , poolType . vcpus ) } , { poolType . disk / 1024 } { ' ' }
7967 GB Storage
8068 </ Typography >
81- < Typography >
82- { isLkeEnterprisePostLAFeatureEnabled && thisPool
83- ? UPDATE_STRATEGY_OPTIONS . find (
84- ( option ) => option . value === thisPool ?. update_strategy
85- ) ?. label
86- : '' }
87- </ Typography >
8869 </ Stack >
8970 < IconButton
9071 data-testid = "remove-pool-button"
0 commit comments