Skip to content

Commit e1c5954

Browse files
add icon warning (#190)
1 parent b8155a4 commit e1c5954

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

webnext/src/shared/defguard-ui/components/Icon/Icon.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ import { IconPlus } from './icons/IconPlus';
3030
import { IconShow } from './icons/IconShow';
3131
import { IconStatusSimple } from './icons/IconStatusSimple';
3232
import { IconUbuntu } from './icons/IconUbuntu';
33+
import { IconWarning } from './icons/IconWarning';
3334
import { IconWindows } from './icons/IconWindows';
3435

3536
type Props<T extends IconKindValue = IconKindValue> = {
@@ -70,6 +71,8 @@ export const Icon = <T extends IconKindValue>({
7071
}: Props<T>) => {
7172
const IconToRender = useMemo(() => {
7273
switch (iconKind) {
74+
case 'warning':
75+
return IconWarning;
7376
case 'ubuntu':
7477
return IconUbuntu;
7578
case 'debian':
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import type { SVGProps } from 'react';
2+
3+
export const IconWarning = (props: SVGProps<SVGSVGElement>) => {
4+
return (
5+
<svg
6+
xmlns="http://www.w3.org/2000/svg"
7+
width="20"
8+
height="20"
9+
viewBox="0 0 20 20"
10+
fill="none"
11+
{...props}
12+
>
13+
<path
14+
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"
15+
fill="#7E8794"
16+
/>
17+
</svg>
18+
);
19+
};

0 commit comments

Comments
 (0)