Skip to content

Commit 65ad4f2

Browse files
fixed icons issue for component types
1 parent 0d93541 commit 65ad4f2

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

src/ui/layouts/stackComponents/Component.tsx

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -401,6 +401,46 @@ const Component = () => {
401401
</Box>
402402
</FlexBox>
403403
)}
404+
{console.log(item, 'item')}
405+
{item !== 'data_validator' &&
406+
item !== 'step_operator' &&
407+
item !== 'orchestrator' &&
408+
item !== 'secrets_manager' &&
409+
item !== 'model_deployer' &&
410+
item !== 'model_deployer' &&
411+
item !== 'feature_store' &&
412+
item !== 'experiment_tracker' &&
413+
item !== 'container_registry' &&
414+
item !== 'annotator' &&
415+
item !== 'alerter' &&
416+
item !== 'artifact_store' && (
417+
<FlexBox
418+
onClick={() => selectSection(item)}
419+
style={{
420+
...sectionStyle,
421+
background: formatSectionColor(item),
422+
}}
423+
marginTop="sm"
424+
>
425+
<Box>
426+
<icons.stackComponent
427+
color={
428+
selectedComp === item
429+
? iconColors.white
430+
: iconColors.primary
431+
}
432+
size={iconSizes.md}
433+
/>
434+
</Box>
435+
<Box>
436+
<Paragraph
437+
style={{ color: formatTextColor(item), ...textStyle }}
438+
>
439+
{formatText(item)}
440+
</Paragraph>
441+
</Box>
442+
</FlexBox>
443+
)}
404444
</Box>
405445
))}
406446
</Box>

0 commit comments

Comments
 (0)