@@ -37,6 +37,7 @@ import {
37
37
CodeEditorThemesKeys ,
38
38
noop ,
39
39
AppThemeType ,
40
+ Icon ,
40
41
} from '@devtron-labs/devtron-fe-common-lib'
41
42
import { useParams , useLocation , useHistory } from 'react-router-dom'
42
43
import YAML from 'yaml'
@@ -45,8 +46,6 @@ import { applyPatch } from 'fast-json-patch'
45
46
import { ReactComponent as Info } from '@Icons/ic-info-filled.svg'
46
47
import { ReactComponent as Error } from '@Icons/ic-error-exclamation.svg'
47
48
import { ReactComponent as AlertTriangle } from '@Icons/ic-alert-triangle.svg'
48
- import { ReactComponent as Cpu } from '@Icons/ic-cpu.svg'
49
- import { ReactComponent as Memory } from '@Icons/ic-memory.svg'
50
49
import { ReactComponent as Storage } from '@Icons/ic-storage.svg'
51
50
import { ReactComponent as Edit } from '@Icons/ic-pencil.svg'
52
51
import { ReactComponent as Dropdown } from '@Icons/ic-chevron-down.svg'
@@ -543,7 +542,7 @@ const NodeDetails = ({ addTab, lowercaseKindToResourceGroupMap, updateTabUrl }:
543
542
544
543
return (
545
544
< div >
546
- < div className = ' dc__border-bottom dc__position-sticky dc__top-0 dc__zi-1 bg__primary' >
545
+ < div className = " dc__border-bottom dc__position-sticky dc__top-0 dc__zi-1 bg__primary" >
547
546
< div className = "en-2 bw-1 dc__top-radius-4 bg__primary dc__no-bottom-border resource-row dc__border-bottom fw-6 fs-13 pt-8 pb-8 pr-20 pl-20 cn-7" >
548
547
< div />
549
548
< div > Resource</ div >
@@ -554,10 +553,10 @@ const NodeDetails = ({ addTab, lowercaseKindToResourceGroupMap, updateTabUrl }:
554
553
< div > Capacity</ div >
555
554
</ div >
556
555
</ div >
557
- < div className = ' en-2 bw-1 br-4 dc__no-top-radius dc__no-top-border bg__primary mb-20' >
556
+ < div className = " en-2 bw-1 br-4 dc__no-top-radius dc__no-top-border bg__primary mb-20" >
558
557
{ cpuData && (
559
558
< div className = "resource-row dc__border-bottom-n1 fw-4 fs-13 pt-8 pb-8 pr-20 pl-20 cn-9" >
560
- < Cpu className = "mt-2 mb-2 icon-dim-18" />
559
+ < Icon name = "ic-cpu" color = { null } size = { 18 } />
561
560
< div > { cpuData . name || '-' } </ div >
562
561
< div > { cpuData . requestPercentage || '-' } </ div >
563
562
< div > { cpuData . limitPercentage || '-' } </ div >
@@ -568,7 +567,7 @@ const NodeDetails = ({ addTab, lowercaseKindToResourceGroupMap, updateTabUrl }:
568
567
) }
569
568
{ memoryData && (
570
569
< div className = "resource-row dc__border-bottom-n1 fw-4 fs-13 pt-8 pb-8 pr-20 pl-20 cn-9" >
571
- < Memory className = "mt-2 mb-2 icon-dim-18" />
570
+ < Icon name = "ic-memory" color = { null } size = { 18 } />
572
571
< div > { memoryData . name || '-' } </ div >
573
572
< div > { memoryData . requestPercentage || '-' } </ div >
574
573
< div > { memoryData . limitPercentage || '-' } </ div >
@@ -833,7 +832,7 @@ const NodeDetails = ({ addTab, lowercaseKindToResourceGroupMap, updateTabUrl }:
833
832
{ renderProbableIssuesOverviewCard ( ) }
834
833
{ renderNodeOverviewCard ( ) }
835
834
</ div >
836
- < div className = ' dc__overflow-auto pr-20' >
835
+ < div className = " dc__overflow-auto pr-20" >
837
836
{ renderResourceList ( ) }
838
837
{ renderLabelAnnotationTaint ( ) }
839
838
{ renderPodList ( ) }
@@ -1055,9 +1054,7 @@ const NodeDetails = ({ addTab, lowercaseKindToResourceGroupMap, updateTabUrl }:
1055
1054
return (
1056
1055
< ErrorScreenManager
1057
1056
code = { errorResponseCode }
1058
- subtitle = {
1059
- errorResponseCode == 403 ? unauthorizedInfoText ( SIDEBAR_KEYS . nodeGVK . Kind . toLowerCase ( ) ) : ''
1060
- }
1057
+ subtitle = { errorResponseCode == 403 ? unauthorizedInfoText ( SIDEBAR_KEYS . nodeGVK . Kind . toLowerCase ( ) ) : '' }
1061
1058
/>
1062
1059
)
1063
1060
}
0 commit comments