Skip to content

Commit

Permalink
Fix render svg icon (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
joel-eche committed Dec 16, 2020
1 parent 0b71d90 commit 26abe77
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
12 changes: 4 additions & 8 deletions src/__snapshots__/index.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -169,9 +169,8 @@ exports[`With className array Icon ArrowLeft 1`] = `
width="24"
>
<path
d="M20.03 12.719H6.584c-.003 0-.005.004-.003.004l5.072 4.875a1.03 1.03 0 11-1.43 1.486l-6.907-6.637a1.032 1.032 0 010-1.486l6.945-6.673a1.027 1.027 0 011.458.028c.394.41.382 1.064-.028 1.458L6.619 10.65c-.003.003 0 .005.002.005h13.432c.549 0 .996.429 1.029.968.035.6-.455 1.097-1.052 1.097z"
d="M20.03 12.719H6.584c-.003 0-.005.004-.003.004l5.072 4.875a1.03 1.03 0 11-1.43 1.486l-6.906-6.637a1.032 1.032 0 010-1.486l6.944-6.673a1.027 1.027 0 011.458.028c.394.41.382 1.064-.028 1.458L6.619 10.65c-.002.003 0 .005.002.005h13.432c.549 0 .996.429 1.03.968.034.6-.455 1.097-1.053 1.097z"
fill="currentColor"
fill-opacity="0.45"
/>
</svg>
</div>
Expand Down Expand Up @@ -2118,9 +2117,8 @@ exports[`With className object Icon ArrowLeft 1`] = `
width="24"
>
<path
d="M20.03 12.719H6.584c-.003 0-.005.004-.003.004l5.072 4.875a1.03 1.03 0 11-1.43 1.486l-6.907-6.637a1.032 1.032 0 010-1.486l6.945-6.673a1.027 1.027 0 011.458.028c.394.41.382 1.064-.028 1.458L6.619 10.65c-.003.003 0 .005.002.005h13.432c.549 0 .996.429 1.029.968.035.6-.455 1.097-1.052 1.097z"
d="M20.03 12.719H6.584c-.003 0-.005.004-.003.004l5.072 4.875a1.03 1.03 0 11-1.43 1.486l-6.906-6.637a1.032 1.032 0 010-1.486l6.944-6.673a1.027 1.027 0 011.458.028c.394.41.382 1.064-.028 1.458L6.619 10.65c-.002.003 0 .005.002.005h13.432c.549 0 .996.429 1.03.968.034.6-.455 1.097-1.053 1.097z"
fill="currentColor"
fill-opacity="0.45"
/>
</svg>
</div>
Expand Down Expand Up @@ -4067,9 +4065,8 @@ exports[`With className string Icon ArrowLeft 1`] = `
width="24"
>
<path
d="M20.03 12.719H6.584c-.003 0-.005.004-.003.004l5.072 4.875a1.03 1.03 0 11-1.43 1.486l-6.907-6.637a1.032 1.032 0 010-1.486l6.945-6.673a1.027 1.027 0 011.458.028c.394.41.382 1.064-.028 1.458L6.619 10.65c-.003.003 0 .005.002.005h13.432c.549 0 .996.429 1.029.968.035.6-.455 1.097-1.052 1.097z"
d="M20.03 12.719H6.584c-.003 0-.005.004-.003.004l5.072 4.875a1.03 1.03 0 11-1.43 1.486l-6.906-6.637a1.032 1.032 0 010-1.486l6.944-6.673a1.027 1.027 0 011.458.028c.394.41.382 1.064-.028 1.458L6.619 10.65c-.002.003 0 .005.002.005h13.432c.549 0 .996.429 1.03.968.034.6-.455 1.097-1.053 1.097z"
fill="currentColor"
fill-opacity="0.45"
/>
</svg>
</div>
Expand Down Expand Up @@ -6016,9 +6013,8 @@ exports[`Without className Icon ArrowLeft 1`] = `
width="24"
>
<path
d="M20.03 12.719H6.584c-.003 0-.005.004-.003.004l5.072 4.875a1.03 1.03 0 11-1.43 1.486l-6.907-6.637a1.032 1.032 0 010-1.486l6.945-6.673a1.027 1.027 0 011.458.028c.394.41.382 1.064-.028 1.458L6.619 10.65c-.003.003 0 .005.002.005h13.432c.549 0 .996.429 1.029.968.035.6-.455 1.097-1.052 1.097z"
d="M20.03 12.719H6.584c-.003 0-.005.004-.003.004l5.072 4.875a1.03 1.03 0 11-1.43 1.486l-6.906-6.637a1.032 1.032 0 010-1.486l6.944-6.673a1.027 1.027 0 011.458.028c.394.41.382 1.064-.028 1.458L6.619 10.65c-.002.003 0 .005.002.005h13.432c.549 0 .996.429 1.03.968.034.6-.455 1.097-1.053 1.097z"
fill="currentColor"
fill-opacity="0.45"
/>
</svg>
</div>
Expand Down
3 changes: 1 addition & 2 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1218,9 +1218,8 @@ export function ArrowLeft(props: BaseProps): JSX.Element {
className={className}
>
<path
d="M20.03 12.719H6.584c-.003 0-.005.004-.003.004l5.072 4.875a1.03 1.03 0 11-1.43 1.486l-6.907-6.637a1.032 1.032 0 010-1.486l6.945-6.673a1.027 1.027 0 011.458.028c.394.41.382 1.064-.028 1.458L6.619 10.65c-.003.003 0 .005.002.005h13.432c.549 0 .996.429 1.029.968.035.6-.455 1.097-1.052 1.097z"
d="M20.03 12.719H6.584c-.003 0-.005.004-.003.004l5.072 4.875a1.03 1.03 0 11-1.43 1.486l-6.906-6.637a1.032 1.032 0 010-1.486l6.944-6.673a1.027 1.027 0 011.458.028c.394.41.382 1.064-.028 1.458L6.619 10.65c-.002.003 0 .005.002.005h13.432c.549 0 .996.429 1.03.968.034.6-.455 1.097-1.053 1.097z"
fill="currentColor"
fillOpacity={0.45}
/>
</svg>
);
Expand Down

0 comments on commit 26abe77

Please sign in to comment.