Skip to content

Commit

Permalink
Add trash icon
Browse files Browse the repository at this point in the history
  • Loading branch information
moroshko committed Feb 19, 2021
1 parent 324cec4 commit c3c7f2c
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/components/Icon.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ const NAMES = [
"tick-small",
"tick",
"time",
"trash",
"triangle-down",
"triangle-up",
"twitter",
Expand Down
33 changes: 33 additions & 0 deletions src/icons/trash.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
import React from "react";
import PropTypes from "prop-types";

function Trash({ size, primaryColor, testId }) {
return (
<svg
css={{
display: "block",
}}
width={size}
height={size}
viewBox="0 0 32 32"
focusable="false"
role="img"
aria-label="Trash"
data-testid={testId}
>
<path
d="M23 26H9V10h2v13.428a1 1 0 002 0V10h2v13.428a1 1 0 002 0V10h2v13.428a1 1 0 002 0V10h2v16zM14 8h4V6h-4v2zm12 0h-6V6a2 2 0 00-2-2h-4a2 2 0 00-2 2v2H6a1 1 0 000 2h1v16a2 2 0 002 2h14a2 2 0 002-2V10h1a1 1 0 100-2z"
fill={primaryColor}
fillRule="evenodd"
/>
</svg>
);
}

Trash.propTypes = {
size: PropTypes.string.isRequired,
primaryColor: PropTypes.string.isRequired,
testId: PropTypes.string,
};

export default Trash;

1 comment on commit c3c7f2c

@vercel
Copy link

@vercel vercel bot commented on c3c7f2c Feb 19, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.