Skip to content

Commit

Permalink
feat: Add Pin Icon
Browse files Browse the repository at this point in the history
  • Loading branch information
blambillotte committed Aug 2, 2024
1 parent a9b8951 commit 80e55fe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/components/Icon.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ export const Icon = (props: IconProps) => {
"move",
"add",
"remove",
"pin",
];
const alertIcons: IconProps["icon"][] = [
"errorCircle",
Expand Down
3 changes: 3 additions & 0 deletions src/components/Icon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -828,6 +828,9 @@ export const Icons = {
<path d="M11.42 21.814C11.594 21.938 11.797 22 12 22C12.203 22 12.406 21.938 12.58 21.814C12.884 21.599 20.029 16.44 20 10C20 5.589 16.411 2 12 2C7.58897 2 3.99997 5.589 3.99997 9.995C3.97097 16.44 11.116 21.599 11.42 21.814ZM12 4C15.309 4 18 6.691 18 10.005C18.021 14.443 13.612 18.428 12 19.735C10.389 18.427 5.97897 14.441 5.99997 10C5.99997 6.691 8.69097 4 12 4Z" />
</>
),
pin: (
<path d="M12 22L13 20V17H18C18.553 17 19 16.553 19 16V14.414C19 13.888 18.786 13.372 18.414 13L17 11.586V8C17.553 8 18 7.553 18 7V4C18 2.897 17.103 2 16 2H8C6.897 2 6 2.897 6 4V7C6 7.553 6.448 8 7 8V11.586L5.586 13C5.213 13.372 5 13.888 5 14.414V16C5 16.553 5.448 17 6 17H11V20L12 22ZM8 4H16V6H8V4ZM7 14.414L8.707 12.707C8.895 12.52 9 12.266 9 12V8H15V12C15 12.266 15.105 12.52 15.293 12.707L17 14.414V15H7V14.414Z" />
),
};

export type IconKey = keyof typeof Icons;

0 comments on commit 80e55fe

Please sign in to comment.