Skip to content

Commit 2a8c9e0

Browse files
add image_builder icon
1 parent 458a8b6 commit 2a8c9e0

File tree

3 files changed

+40
-0
lines changed

3 files changed

+40
-0
lines changed
Lines changed: 6 additions & 0 deletions
Loading

src/ui/components/icons/index.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ import { ReactComponent as Graph } from './assets/Graph.svg';
5858
import { ReactComponent as GitCommit } from './assets/GitCommit.svg';
5959
import { ReactComponent as ChatDots } from './assets/ChatDots.svg';
6060
import { ReactComponent as Run } from './assets/Run.svg';
61+
import { ReactComponent as ImageBuilder } from './assets/ImageBuilder.svg';
6162
// import { ReactComponent as Inprogress } from './assets/InProgress.svg';
6263
// import { ReactComponent as Cached } from './assets/Cached.svg';
6364
// import { ReactComponent as RightArrow } from './assets/RightArrow.svg';
@@ -187,6 +188,10 @@ const icons = {
187188
Component: ChartBarHorizontal,
188189
useStroke: true,
189190
}),
191+
image_builder: createIcon({
192+
Component: ImageBuilder,
193+
useStroke: true,
194+
}),
190195

191196
// paginations
192197
paginationFirst: createIcon({ Component: PaginationFirst, useStroke: true }),

src/ui/layouts/stackComponents/Component.tsx

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -401,6 +401,34 @@ const Component = () => {
401401
</Box>
402402
</FlexBox>
403403
)}
404+
{item === 'image_builder' && (
405+
<FlexBox
406+
onClick={() => selectSection(item)}
407+
style={{
408+
...sectionStyle,
409+
background: formatSectionColor(item),
410+
}}
411+
marginTop="sm"
412+
>
413+
<Box>
414+
<icons.image_builder
415+
color={
416+
selectedComp === item
417+
? iconColors.white
418+
: iconColors.primary
419+
}
420+
size={iconSizes.md}
421+
/>
422+
</Box>
423+
<Box>
424+
<Paragraph
425+
style={{ color: formatTextColor(item), ...textStyle }}
426+
>
427+
{formatText(item)}
428+
</Paragraph>
429+
</Box>
430+
</FlexBox>
431+
)}
404432
{console.log(item, 'item')}
405433
{item !== 'data_validator' &&
406434
item !== 'step_operator' &&
@@ -413,6 +441,7 @@ const Component = () => {
413441
item !== 'container_registry' &&
414442
item !== 'annotator' &&
415443
item !== 'alerter' &&
444+
item !== 'image_builder' &&
416445
item !== 'artifact_store' && (
417446
<FlexBox
418447
onClick={() => selectSection(item)}

0 commit comments

Comments
 (0)