-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #106 from Giveth/fix-warning-icon
fix: added new svg icon for warning
- Loading branch information
Showing
8 changed files
with
58 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "@giveth/ui-design-system", | ||
"version": "1.11.32", | ||
"version": "1.11.33", | ||
"files": [ | ||
"/lib" | ||
], | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import React, { FC } from 'react'; | ||
import { IIconProps } from '../type'; | ||
|
||
export const IconWarning64: FC<IIconProps> = ({ | ||
size = 64, | ||
color = 'currentColor', | ||
}) => ( | ||
<svg | ||
width={size} | ||
height={size} | ||
viewBox='0 0 66 57' | ||
fill='none' | ||
xmlns='http://www.w3.org/2000/svg' | ||
> | ||
<path | ||
d='M33 19.6914V31.9425M33 44.1936H33.0306M27.7626 3.94867L1.82088 47.2564C1.28602 48.1827 1.00302 49.2328 1.00002 50.3024C0.997029 51.372 1.27415 52.4237 1.80381 53.3529C2.33348 54.2822 3.09722 55.0565 4.01907 55.599C4.94091 56.1414 5.98871 56.433 7.05824 56.4447H58.9418C60.0113 56.433 61.0591 56.1414 61.9809 55.599C62.9028 55.0565 63.6665 54.2822 64.1962 53.3529C64.7258 52.4237 65.003 51.372 65 50.3024C64.997 49.2328 64.714 48.1827 64.1791 47.2564L38.2374 3.94867C37.6914 3.04854 36.9226 2.30433 36.0052 1.78783C35.0878 1.27134 34.0528 1 33 1C31.9472 1 30.9122 1.27134 29.9948 1.78783C29.0774 2.30433 28.3086 3.04854 27.7626 3.94867Z' | ||
stroke={color} | ||
strokeLinecap='round' | ||
strokeLinejoin='round' | ||
/> | ||
</svg> | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import React from 'react'; | ||
import { ComponentStory, ComponentMeta } from '@storybook/react'; | ||
|
||
import { IconWarning64 } from '../../../components/icons/Warning/Warning64'; | ||
|
||
export default { | ||
title: 'Example/Icons/Warning/Warning64', | ||
component: IconWarning64, | ||
} as ComponentMeta<typeof IconWarning64>; | ||
|
||
const Template: ComponentStory<typeof IconWarning64> = args => ( | ||
<IconWarning64 {...args} /> | ||
); | ||
|
||
export const Warning64 = Template.bind({}); | ||
Warning64.args = { | ||
color: 'white', | ||
size: 64, | ||
}; |