Skip to content

Commit

Permalink
change: [M3-8749] - Add and use new cloud-init icon (#11100)
Browse files Browse the repository at this point in the history
* add and use the new icon

* Added changeset: Add and use new cloud-init icon

---------

Co-authored-by: Banks Nussman <banks@nussman.us>
  • Loading branch information
bnussman-akamai and bnussman authored Oct 16, 2024
1 parent 4e7cb48 commit 5bcefcf
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 5 deletions.
5 changes: 5 additions & 0 deletions packages/manager/.changeset/pr-11100-changed-1729010084175.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@linode/manager": Changed
---

Add and use new cloud-init icon ([#11100](https://github.com/linode/manager/pull/11100))
4 changes: 4 additions & 0 deletions packages/manager/src/assets/icons/cloud-init.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions packages/manager/src/components/ImageSelect/ImageOption.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import DescriptionOutlinedIcon from '@mui/icons-material/DescriptionOutlined';
import * as React from 'react';
import React from 'react';
import { makeStyles } from 'tss-react/mui';

import CloudInitIcon from 'src/assets/icons/cloud-init.svg';
import DistributedRegionIcon from 'src/assets/icons/entityIcons/distributed-region.svg';
import { Box } from 'src/components/Box';
import { Option } from 'src/components/EnhancedSelect/components/Option';
Expand Down Expand Up @@ -82,7 +82,7 @@ export const ImageOption = (props: ImageOptionProps) => {
)}
{flags.metadata && data.isCloudInitCompatible && (
<Tooltip title="This image is compatible with cloud-init.">
<DescriptionOutlinedIcon />
<CloudInitIcon />
</Tooltip>
)}
</Stack>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import DescriptionOutlinedIcon from '@mui/icons-material/DescriptionOutlined';
import React from 'react';

import CloudInitIcon from 'src/assets/icons/cloud-init.svg';
import DistributedRegionIcon from 'src/assets/icons/entityIcons/distributed-region.svg';
import { useFlags } from 'src/hooks/useFlags';

Expand Down Expand Up @@ -47,7 +47,9 @@ export const ImageOptionv2 = ({ image, isSelected, listItemProps }: Props) => {
)}
{flags.metadata && image.capabilities.includes('cloud-init') && (
<Tooltip title="This image is compatible with cloud-init.">
<DescriptionOutlinedIcon />
<div style={{ display: 'flex' }}>
<CloudInitIcon />
</div>
</Tooltip>
)}
{isSelected && <SelectedIcon visible />}
Expand Down

0 comments on commit 5bcefcf

Please sign in to comment.