-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(icons): add checkmark circle icon (#317)
Co-authored-by: Shadi <TheSisb@users.noreply.github.com>
- Loading branch information
Showing
4 changed files
with
44 additions
and
2 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,37 @@ | ||
/** | ||
* This file was automatically generated with @twilio-labs/svg-to-react | ||
*/ | ||
import * as React from 'react'; | ||
import {UID} from 'react-uid'; | ||
import {IconWrapper, IconWrapperProps} from './helpers/IconWrapper'; | ||
|
||
export interface CheckmarkCircleIconProps extends IconWrapperProps { | ||
title?: string; | ||
decorative: boolean; | ||
} | ||
|
||
const CheckmarkCircleIcon: React.FC<CheckmarkCircleIconProps> = ({as, size, iconColor, title, decorative}) => { | ||
if (!decorative && title == null) { | ||
throw new Error('[CheckmarkCircleIcon]: Missing a title for non-decorative icon.'); | ||
} | ||
|
||
return ( | ||
<IconWrapper as={as} size={size} iconColor={iconColor}> | ||
<UID> | ||
{uid => ( | ||
<svg role="img" aria-hidden={decorative} aria-labelledby={uid} width="100%" height="100%" viewBox="0 0 24 24"> | ||
{title ? <title id={uid}>{title}</title> : null} | ||
<path | ||
fill="currentColor" | ||
fillRule="evenodd" | ||
d="M12 4a8 8 0 110 16 8 8 0 010-16zm0 1a7 7 0 100 14 7 7 0 000-14zm4.31 3.16a.5.5 0 01.132.627l-.05.075-5.223 6.608a1.2 1.2 0 01-1.867.054l-.077-.103-1.634-2.318a.5.5 0 01.76-.644l.058.068 1.64 2.328a.199.199 0 00.274.056l.029-.023.027-.03 5.229-6.616a.5.5 0 01.702-.082z" | ||
/> | ||
</svg> | ||
)} | ||
</UID> | ||
</IconWrapper> | ||
); | ||
}; | ||
|
||
CheckmarkCircleIcon.displayName = 'CheckmarkCircleIcon'; | ||
export {CheckmarkCircleIcon}; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
af76993
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to following URLs: