Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions webnext/src/shared/defguard-ui/components/Icon/Icon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ import { IconPlus } from './icons/IconPlus';
import { IconShow } from './icons/IconShow';
import { IconStatusSimple } from './icons/IconStatusSimple';
import { IconUbuntu } from './icons/IconUbuntu';
import { IconWarning } from './icons/IconWarning';
import { IconWindows } from './icons/IconWindows';

type Props<T extends IconKindValue = IconKindValue> = {
Expand Down Expand Up @@ -70,6 +71,8 @@ export const Icon = <T extends IconKindValue>({
}: Props<T>) => {
const IconToRender = useMemo(() => {
switch (iconKind) {
case 'warning':
return IconWarning;
case 'ubuntu':
return IconUbuntu;
case 'debian':
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import type { SVGProps } from 'react';

export const IconWarning = (props: SVGProps<SVGSVGElement>) => {
return (
<svg
xmlns="http://www.w3.org/2000/svg"
width="20"
height="20"
viewBox="0 0 20 20"
fill="none"
{...props}
>
<path
d="M8.80741 7.3985H10.2019V12.1969H8.80741V7.3985ZM8.80741 15.0984H10.2019V13.3862H8.80741V15.0984ZM16.7095 16.7697C16.3097 17.5386 15.5846 18 14.7851 18H4.2242C3.4154 18 2.69957 17.5386 2.29981 16.7697C1.90006 16.0007 1.90006 15.0779 2.29981 14.3192L7.57096 4.23035C7.97072 3.46138 8.69585 3 9.49535 3C10.2949 3 11.02 3.46138 11.4197 4.23035L16.7002 14.309C17.0999 15.0779 17.0999 15.9904 16.7002 16.7594L16.7095 16.7697ZM15.5009 15.0779L10.2205 4.99932C10.0067 4.5892 9.6441 4.53794 9.50465 4.53794C9.3652 4.53794 9.00263 4.57895 8.78881 4.99932L3.49907 15.0779C3.28525 15.488 3.4247 15.8571 3.49907 15.9904C3.57344 16.1237 3.78726 16.4518 4.21491 16.4518H14.7758C15.2127 16.4518 15.4266 16.134 15.4916 15.9904C15.566 15.8571 15.7055 15.488 15.4916 15.0779H15.5009Z"
fill="#7E8794"
/>
</svg>
);
};