Skip to content

Commit 957e050

Browse files
authored
SW-5362 Replaced module icon and added variable icon (#540)
1 parent ecb92de commit 957e050

File tree

6 files changed

+30
-4
lines changed

6 files changed

+30
-4
lines changed

assets/icon-module.svg

Lines changed: 2 additions & 2 deletions
Loading

assets/icon-variable.svg

Lines changed: 3 additions & 0 deletions
Loading

src/components/Icon/icons/index.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ import IconSynced from '../../svg/IconSynced';
7171
import IconTrashCan from '../../svg/IconTrashCan';
7272
import IconTreasureMap from '../../svg/IconTreasureMap';
7373
import IconUndo from '../../svg/IconUndo';
74+
import IconVariable from '../../svg/IconVariable';
7475
import Info from '../../svg/Info';
7576
import Key from '../../svg/Key';
7677
import Leaf from '../../svg/Leaf';
@@ -175,6 +176,7 @@ export type IconName =
175176
| 'iconTrashCan'
176177
| 'iconTreasureMap'
177178
| 'iconUndo'
179+
| 'iconVariable'
178180
| 'info'
179181
| 'key'
180182
| 'leaf'
@@ -283,6 +285,7 @@ const icons: Record<IconName, SVGComponent> = {
283285
iconTrashCan: IconTrashCan,
284286
iconTreasureMap: IconTreasureMap,
285287
iconUndo: IconUndo,
288+
iconVariable: IconVariable,
286289
info: Info,
287290
key: Key,
288291
leaf: Leaf,

src/components/svg/IconModule.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,12 @@ interface SVGRProps {
55
titleId?: string;
66
}
77
const SvgIconModule = ({ title, titleId, ...props }: SVGProps<SVGSVGElement> & SVGRProps) => (
8-
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' aria-labelledby={titleId} {...props}>
8+
<svg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' aria-labelledby={titleId} {...props}>
99
{title ? <title id={titleId}>{title}</title> : null}
10-
<path d='M11.979 1a.75.75 0 0 0-.32.082L2.91 5.538a.75.75 0 0 0-.409.668v10.395a.75.75 0 0 0 .343.63l8.75 5.649a.75.75 0 0 0 .814 0l8.75-5.649a.75.75 0 0 0 .343-.63V6.206a.75.75 0 0 0-.41-.668l-8.75-4.456A.75.75 0 0 0 11.98 1ZM12 2.592l7.208 3.67-2.518 1.524-4.35-2.215a.75.75 0 0 0-.68 0L7.31 7.786 4.793 6.263 12 2.592Zm0 4.489 3.179 1.62L12 10.622 8.821 8.7 12 7.081Zm-8 .456L6.5 9.05v5.373a.75.75 0 0 0 .343.63l4.407 2.844v2.976L4 16.193V7.536Zm16 0v8.655l-7.25 4.681v-2.976l4.407-2.844a.75.75 0 0 0 .343-.63V9.05L20 7.537ZM8 9.957l3.25 1.966v4.19L8 14.012V9.958Zm8 0v4.057l-3.25 2.098v-4.19L16 9.958Z' />
10+
<path
11+
fill='#333025'
12+
d='M5 3a2 2 0 1 0 0 4 2 2 0 0 0 0-4Zm2.231 0c.371.413.628.929.724 1.5H19.5V14H8v1.5h13.25a.75.75 0 1 0 0-1.5H21V3.75a.75.75 0 0 0-.75-.75H7.231ZM4 8a1.5 1.5 0 0 0-1.5 1.5v6H7v-6h5.25a.75.75 0 1 0 0-1.5H4Zm.5 9a2 2 0 1 0 0 4 2 2 0 0 0 0-4Zm5 0a2 2 0 1 0 0 4 2 2 0 0 0 0-4Zm5 0a2 2 0 1 0 0 4 2 2 0 0 0 0-4Zm5 0a2 2 0 1 0 0 4 2 2 0 0 0 0-4Z'
13+
/>
1114
</svg>
1215
);
1316
export default SvgIconModule;
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import * as React from 'react';
2+
import { SVGProps } from 'react';
3+
interface SVGRProps {
4+
title?: string;
5+
titleId?: string;
6+
}
7+
const SvgIconVariable = ({ title, titleId, ...props }: SVGProps<SVGSVGElement> & SVGRProps) => (
8+
<svg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' aria-labelledby={titleId} {...props}>
9+
{title ? <title id={titleId}>{title}</title> : null}
10+
<path
11+
fill='#333025'
12+
d='M11.979 1a.75.75 0 0 0-.32.082L2.91 5.538a.75.75 0 0 0-.409.668v10.395a.75.75 0 0 0 .343.63l8.75 5.649a.75.75 0 0 0 .814 0l8.75-5.649a.75.75 0 0 0 .343-.63V6.206a.75.75 0 0 0-.41-.668l-8.75-4.456A.75.75 0 0 0 11.98 1ZM12 2.592l7.208 3.67-2.518 1.524-4.35-2.215a.75.75 0 0 0-.68 0L7.31 7.786 4.793 6.263 12 2.592Zm0 4.489 3.179 1.62L12 10.622 8.821 8.7 12 7.081Zm-8 .456L6.5 9.05v5.373a.75.75 0 0 0 .343.63l4.407 2.844v2.976L4 16.193V7.536Zm16 0v8.655l-7.25 4.681v-2.976l4.407-2.844a.75.75 0 0 0 .343-.63V9.05L20 7.537ZM8 9.957l3.25 1.966v4.19L8 14.012V9.958Zm8 0v4.057l-3.25 2.098v-4.19L16 9.958Z'
13+
/>
14+
</svg>
15+
);
16+
export default SvgIconVariable;

src/components/svg/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ export { default as IconSynced } from './IconSynced';
7777
export { default as IconTrashCan } from './IconTrashCan';
7878
export { default as IconTreasureMap } from './IconTreasureMap';
7979
export { default as IconUndo } from './IconUndo';
80+
export { default as IconVariable } from './IconVariable';
8081
export { default as IconWifi } from './IconWifi';
8182
export { default as Info } from './Info';
8283
export { default as Key } from './Key';

0 commit comments

Comments
 (0)