Skip to content

Commit f9219a2

Browse files
authored
feat: add swap icon (#572)
1 parent 269dffd commit f9219a2

File tree

3 files changed

+31
-0
lines changed

3 files changed

+31
-0
lines changed

assets/icons/experimental/swap.svg

Lines changed: 3 additions & 0 deletions
Loading
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
// DO NOT EDIT. This file was generated by running `npm run generate`.;
2+
import * as React from 'react';
3+
import { get } from '../../utils/themeGet';
4+
import { IconProps } from '../IconProps';
5+
type Props = IconProps;
6+
const SwapIcon: React.FC<Props> = ({ size = 'medium', color = 'inherit', ...rest }) => {
7+
const props = { ...rest, color };
8+
const sizePx = Number.isFinite(size as number)
9+
? size
10+
: get(`iconSizes.${size}`)(props) || get('iconSizes.medium')(props);
11+
return (
12+
<svg
13+
{...props}
14+
width={sizePx}
15+
height={sizePx}
16+
viewBox="0 0 24 24"
17+
fill="none"
18+
xmlns="http://www.w3.org/2000/svg"
19+
>
20+
<path
21+
d="M6.76 5.55L4.77 7.536a.962.962 0 01-.734.3 1.056 1.056 0 01-.733-.326A1.1 1.1 0 013 6.78a.955.955 0 01.3-.732l3.774-3.76a.92.92 0 01.34-.222c.122-.043.253-.065.393-.065s.27.022.393.065a.92.92 0 01.34.222l3.773 3.76c.193.191.289.43.289.718 0 .287-.096.535-.289.744-.21.209-.458.313-.746.313s-.537-.104-.747-.313L8.856 5.551v14.804c0 .296-.1.544-.301.744-.201.2-.45.3-.747.3s-.546-.1-.747-.3c-.2-.2-.3-.448-.3-.744V5.551zm8.384 12.9V3.644c0-.296.1-.544.301-.744.201-.2.45-.3.747-.3s.546.1.747.3c.2.2.3.448.3.744v14.804l1.992-1.984a.962.962 0 01.734-.3c.28.008.524.117.733.326a1.1 1.1 0 01.302.73.955.955 0 01-.302.732l-3.773 3.76a.92.92 0 01-.34.222 1.164 1.164 0 01-.393.065c-.14 0-.27-.022-.393-.065a.92.92 0 01-.34-.222l-3.773-3.76a.973.973 0 01-.289-.718c0-.287.096-.535.289-.744.21-.209.458-.314.746-.314s.537.105.747.314l1.965 1.958z"
22+
fill="currentColor"
23+
/>
24+
</svg>
25+
);
26+
};
27+
export default SwapIcon;

src/icons/experimental/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,4 @@ export { default as TrashIcon } from './TrashIcon';
1616
export { default as EditPenIcon } from './EditPenIcon';
1717
export { default as HailingIcon } from './HailingIcon';
1818
export { default as PinIcon } from './PinIcon';
19+
export { default as SwapIcon } from './SwapIcon';

0 commit comments

Comments
 (0)