Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Icons: add swap icon #739

Merged
merged 1 commit into from
Mar 23, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions devbox/all-icons.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ export {
IconSquare,
IconStarFilled,
IconStar,
IconSwap,
IconTarget,
IconToken,
IconTrash,
Expand Down
2 changes: 1 addition & 1 deletion src/components/AppView/assets/chevron.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
32 changes: 32 additions & 0 deletions src/icons/components/IconSwap.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
import React from 'react'
import useIconSize from '../icon-size'
import IconPropTypes from '../IconPropTypes'

function IconSwap({ size, ...props }) {
const sizeValue = useIconSize(size)
return (
<svg
width={sizeValue}
height={sizeValue}
fill="none"
viewBox="0 0 22 21"
{...props}
>
<path
fill="currentColor"
stroke="currentColor"
strokeWidth={0.2}
d="M21.399 12l-3.033-3.034a.566.566 0 00-.8.8l2.633 2.633-2.633 2.634a.566.566 0 00.8.8l3.033-3.034a.565.565 0 000-.8zm-16.166-.967L2.6 8.399l2.633-2.633a.566.566 0 10-.8-.8L1.4 8a.566.566 0 000 .8l3.033 3.033a.566.566 0 00.8-.8z"
/>
<path
fill="currentColor"
stroke="currentColor"
strokeWidth={0.2}
d="M21.564 12.4a.566.566 0 00-.565-.566H9.921a.566.566 0 000 1.131H21a.566.566 0 00.566-.566zm-8.121-4a.565.565 0 00-.566-.566H1.8a.566.566 0 100 1.131h11.077a.565.565 0 00.566-.565z"
/>
</svg>
)
}

IconSwap.propTypes = IconPropTypes
export default IconSwap
1 change: 1 addition & 0 deletions src/icons/components/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ export { default as IconSquarePlus } from './IconSquarePlus'
export { default as IconSquare } from './IconSquare'
export { default as IconStarFilled } from './IconStarFilled'
export { default as IconStar } from './IconStar'
export { default as IconSwap } from './IconSwap'
export { default as IconTarget } from './IconTarget'
export { default as IconToken } from './IconToken'
export { default as IconTrash } from './IconTrash'
Expand Down
1 change: 1 addition & 0 deletions src/icons/svg/swap.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.