Skip to content

Commit 8d702f3

Browse files
authored
Merge pull request #921 from amitamrutiya/add-icon
Add some icons
2 parents b8a77e1 + 1b3534f commit 8d702f3

5 files changed

Lines changed: 53 additions & 0 deletions

File tree

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
import { DEFAULT_HEIGHT, DEFAULT_WIDTH } from '../../constants/constants';
2+
import { IconProps } from '../types';
3+
4+
export const CheckCircleIcon = ({
5+
width = DEFAULT_WIDTH,
6+
height = DEFAULT_HEIGHT,
7+
...props
8+
}: IconProps): JSX.Element => {
9+
return (
10+
<svg
11+
aria-hidden="true"
12+
viewBox="0 0 24 24"
13+
data-testid="CheckCircleIcon"
14+
fill={props.fill || 'currentColor'}
15+
width={width}
16+
height={height}
17+
xmlns="http://www.w3.org/2000/svg"
18+
{...props}
19+
>
20+
<path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"></path>
21+
</svg>
22+
);
23+
};
24+
25+
export default CheckCircleIcon;

src/icons/CheckCircle/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { CheckCircleIcon } from './CheckCircleIcon';

src/icons/Warning/WarningIcon.tsx

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
import { DEFAULT_HEIGHT, DEFAULT_WIDTH } from '../../constants/constants';
2+
import { IconProps } from '../types';
3+
4+
export const WarningIcon = ({
5+
width = DEFAULT_WIDTH,
6+
height = DEFAULT_HEIGHT,
7+
...props
8+
}: IconProps): JSX.Element => {
9+
return (
10+
<svg
11+
aria-hidden="true"
12+
viewBox="0 0 24 24"
13+
data-testid="WarningIcon"
14+
width={width}
15+
height={height}
16+
xmlns="http://www.w3.org/2000/svg"
17+
{...props}
18+
>
19+
<path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"></path>
20+
</svg>
21+
);
22+
};
23+
24+
export default WarningIcon;

src/icons/Warning/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { WarningIcon } from './WarningIcon';

src/icons/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ export * from './Mesh';
4242
export * from './Calender';
4343
export * from './Chain';
4444
export * from './Challenges';
45+
export * from './CheckCircle';
4546
export * from './ChevronLeft';
4647
export * from './ContentClassIcons';
4748
export * from './Deployments';
@@ -112,4 +113,5 @@ export * from './Validate';
112113
export * from './View';
113114
export * from './Visibility';
114115
export * from './Visualizer';
116+
export * from './Warning';
115117
export * from './Workspace';

0 commit comments

Comments
 (0)