Skip to content

Commit

Permalink
chore: forward all props to svg in icons
Browse files Browse the repository at this point in the history
  • Loading branch information
epiqueras committed Aug 26, 2020
1 parent 3fe6c81 commit 7507ab6
Show file tree
Hide file tree
Showing 10 changed files with 20 additions and 10 deletions.
3 changes: 2 additions & 1 deletion icons/blog.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
import { SVG } from "@kleros/components";

export default function Blog({ size = 16 }) {
export default function Blog({ size = 16, ...rest }) {
return (
<SVG
width={size}
height={size}
viewBox="0 0 17 17"
fill="none"
xmlns="http://www.w3.org/2000/svg"
{...rest}
>
<rect
x="0.152344"
Expand Down
3 changes: 2 additions & 1 deletion icons/etherscan-logo.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion icons/github.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion icons/linked-in.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
import { SVG } from "@kleros/components";

export default function LinkedIn({ size = 16 }) {
export default function LinkedIn({ size = 16, ...rest }) {
return (
<SVG
width={size}
height={size}
viewBox="0 0 18 17"
fill="none"
xmlns="http://www.w3.org/2000/svg"
{...rest}
>
<path
d="M4.60023 16.6679H1.19326V5.6585H4.60023V16.6679ZM2.89491 4.15672C1.80571 4.15672 0.921875 3.25123 0.921875 2.15803C0.921875 1.06482 1.80571 0.177734 2.89491 0.177734C3.98411 0.177734 4.86795 1.06482 4.86795 2.15803C4.86795 3.25123 3.98411 4.15672 2.89491 4.15672ZM17.3516 16.6679H13.952V11.3086C13.952 10.0313 13.9263 8.39336 12.1806 8.39336C10.4093 8.39336 10.1379 9.78104 10.1379 11.2166V16.6679H6.73463V5.6585H10.0022V7.16028H10.0499C10.5047 6.29529 11.6159 5.38244 13.2735 5.38244C16.7208 5.38244 17.3553 7.66088 17.3553 10.6203V16.6679H17.3516Z"
Expand Down
3 changes: 2 additions & 1 deletion icons/pending.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
import { SVG } from "@kleros/components";

export default function Pending({ size = 16 }) {
export default function Pending({ size = 16, ...rest }) {
return (
<SVG
width={size}
height={size}
viewBox="0 0 12 16"
fill="none"
xmlns="http://www.w3.org/2000/svg"
{...rest}
>
<path
d="M11.25 0H0.75C0.335781 0 0 0.335781 0 0.75V1.25C0 1.66422 0.335781 2 0.75 2C0.75 4.84266 2.34425 7.24169 4.52631 8C2.34425 8.75831 0.75 11.1573 0.75 14C0.335781 14 0 14.3358 0 14.75V15.25C0 15.6642 0.335781 16 0.75 16H11.25C11.6642 16 12 15.6642 12 15.25V14.75C12 14.3358 11.6642 14 11.25 14C11.25 11.1573 9.65575 8.75831 7.47369 8C9.65575 7.24169 11.25 4.84266 11.25 2C11.6642 2 12 1.66422 12 1.25V0.75C12 0.335781 11.6642 0 11.25 0ZM9.25 14H2.75C2.75 11.5794 4.19387 9.5 6 9.5C7.80581 9.5 9.25 11.5787 9.25 14Z"
Expand Down
3 changes: 2 additions & 1 deletion icons/proof-of-humanity-logo.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion icons/search.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
import { SVG } from "@kleros/components";

export default function Search({ size = 16 }) {
export default function Search({ size = 16, ...rest }) {
return (
<SVG
width={size}
height={size}
viewBox="0 0 15 16"
fill="none"
xmlns="http://www.w3.org/2000/svg"
{...rest}
>
<path
d="M14.7949 12.9697L11.874 10.0488C11.7422 9.91699 11.5635 9.84375 11.376 9.84375H10.8984C11.707 8.80957 12.1875 7.50879 12.1875 6.09375C12.1875 2.72754 9.45996 0 6.09375 0C2.72754 0 0 2.72754 0 6.09375C0 9.45996 2.72754 12.1875 6.09375 12.1875C7.50879 12.1875 8.80957 11.707 9.84375 10.8984V11.376C9.84375 11.5635 9.91699 11.7422 10.0488 11.874L12.9697 14.7949C13.2451 15.0703 13.6904 15.0703 13.9629 14.7949L14.792 13.9658C15.0674 13.6904 15.0674 13.2451 14.7949 12.9697ZM6.09375 9.84375C4.02246 9.84375 2.34375 8.16797 2.34375 6.09375C2.34375 4.02246 4.01953 2.34375 6.09375 2.34375C8.16504 2.34375 9.84375 4.01953 9.84375 6.09375C9.84375 8.16504 8.16797 9.84375 6.09375 9.84375Z"
Expand Down
3 changes: 2 additions & 1 deletion icons/settings.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
import { SVG } from "@kleros/components";

export default function Settings({ size = 16 }) {
export default function Settings({ size = 16, ...rest }) {
return (
<SVG
width={size}
height={size}
viewBox="0 0 18 18"
fill="none"
xmlns="http://www.w3.org/2000/svg"
{...rest}
>
<path
d="M17.0112 11.1629L15.4653 10.2702C15.6213 9.42822 15.6213 8.56452 15.4653 7.72259L17.0112 6.82985C17.1891 6.72823 17.2689 6.51775 17.2108 6.32178C16.808 5.02985 16.1221 3.86131 15.2258 2.88873C15.0879 2.73994 14.8629 2.70365 14.6887 2.80527L13.1427 3.698C12.4931 3.13914 11.7455 2.70728 10.9363 2.42422V0.64237C10.9363 0.439145 10.7947 0.261323 10.5951 0.217775C9.26329 -0.0798044 7.89878 -0.0652883 6.63225 0.217775C6.43266 0.261323 6.29112 0.439145 6.29112 0.64237V2.42785C5.48548 2.71454 4.7379 3.14639 4.08468 3.70163L2.54235 2.80889C2.36453 2.70728 2.14316 2.73994 2.00525 2.89236C1.10889 3.86131 0.423003 5.02985 0.0201817 6.32541C-0.0415116 6.52138 0.0419558 6.73186 0.219778 6.83348L1.76574 7.72621C1.60969 8.56815 1.60969 9.43185 1.76574 10.2738L0.219778 11.1665C0.0419558 11.2681 -0.0378826 11.4786 0.0201817 11.6746C0.423003 12.9665 1.10889 14.1351 2.00525 15.1076C2.14316 15.2564 2.36816 15.2927 2.54235 15.1911L4.08831 14.2984C4.7379 14.8572 5.48548 15.2891 6.29475 15.5722V17.3576C6.29475 17.5609 6.43629 17.7387 6.63588 17.7822C7.96773 18.0798 9.33224 18.0653 10.5988 17.7822C10.7984 17.7387 10.9399 17.5609 10.9399 17.3576V15.5722C11.7455 15.2855 12.4931 14.8536 13.1463 14.2984L14.6923 15.1911C14.8701 15.2927 15.0915 15.2601 15.2294 15.1076C16.1258 14.1387 16.8116 12.9701 17.2145 11.6746C17.2689 11.475 17.1891 11.2645 17.0112 11.1629ZM8.6137 11.8996C7.0133 11.8996 5.71048 10.5968 5.71048 8.99637C5.71048 7.39597 7.0133 6.09316 8.6137 6.09316C10.2141 6.09316 11.5169 7.39597 11.5169 8.99637C11.5169 10.5968 10.2141 11.8996 8.6137 11.8996Z"
Expand Down
3 changes: 2 additions & 1 deletion icons/telegram.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
import { SVG } from "@kleros/components";

export default function Telegram({ size = 16 }) {
export default function Telegram({ size = 16, ...rest }) {
return (
<SVG
width={size}
height={size}
viewBox="0 0 17 15"
fill="none"
xmlns="http://www.w3.org/2000/svg"
{...rest}
>
<path
d="M16.7959 1.78231L14.2771 13.5168C14.0871 14.345 13.5916 14.5511 12.8874 14.161L9.0497 11.3672L7.19792 13.1266C6.993 13.3291 6.8216 13.4984 6.42666 13.4984L6.70237 9.63721L13.8151 3.28777C14.1244 3.01539 13.7481 2.86447 13.3345 3.13685L4.54135 8.60658L0.755821 7.43607C-0.0676051 7.18209 -0.0825088 6.62261 0.927213 6.23244L15.734 0.597076C16.4195 0.343098 17.0194 0.747991 16.7959 1.78231Z"
Expand Down
3 changes: 2 additions & 1 deletion icons/twitter.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
import { SVG } from "@kleros/components";

export default function Twitter({ size = 16 }) {
export default function Twitter({ size = 16, ...rest }) {
return (
<SVG
width={size}
height={size}
viewBox="0 0 19 16"
fill="none"
xmlns="http://www.w3.org/2000/svg"
{...rest}
>
<path
d="M16.9087 4.20132C16.9206 4.36872 16.9206 4.53616 16.9206 4.70357C16.9206 9.80963 13.0343 15.693 5.93119 15.693C3.74286 15.693 1.71001 15.0592 0 13.9591C0.31092 13.995 0.609841 14.0069 0.932724 14.0069C2.73836 14.0069 4.40055 13.3971 5.7279 12.3567C4.02986 12.3208 2.60684 11.2087 2.11656 9.67811C2.35574 9.71396 2.59488 9.73789 2.84602 9.73789C3.1928 9.73789 3.5396 9.69003 3.86245 9.60637C2.09267 9.2476 0.765283 7.69307 0.765283 5.81566V5.76785C1.27946 6.05484 1.87741 6.23421 2.51114 6.2581C1.47079 5.56452 0.789209 4.38069 0.789209 3.04138C0.789209 2.32391 0.980502 1.66621 1.31535 1.09222C3.21668 3.436 6.07467 4.9666 9.27939 5.13404C9.21962 4.84705 9.18373 4.54813 9.18373 4.24917C9.18373 2.12061 10.9057 0.386719 13.0462 0.386719C14.1583 0.386719 15.1627 0.853081 15.8683 1.60644C16.7412 1.43903 17.5782 1.11615 18.3197 0.673714C18.0326 1.57059 17.4228 2.32394 16.6216 2.80223C17.3989 2.71857 18.1523 2.50327 18.8458 2.20435C18.3198 2.96964 17.662 3.65122 16.9087 4.20132Z"
Expand Down

0 comments on commit 7507ab6

Please sign in to comment.