Skip to content

Commit 74aba03

Browse files
committed
feat(icons): add RefreshIcon component
Signed-off-by: dpoppe7 <damariscecilia29@gmail.com>
1 parent 6a8d333 commit 74aba03

File tree

3 files changed

+28
-0
lines changed

3 files changed

+28
-0
lines changed

src/icons/Refresh/RefreshIcon.tsx

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
import { DEFAULT_HEIGHT, DEFAULT_WIDTH, KEPPEL_GREEN_FILL } from '../../constants/constants';
2+
import { IconProps } from '../types';
3+
4+
export const RefreshIcon = ({
5+
width = DEFAULT_WIDTH,
6+
height = DEFAULT_HEIGHT,
7+
fill = KEPPEL_GREEN_FILL,
8+
...props
9+
}: IconProps): JSX.Element => {
10+
return (
11+
<svg
12+
width={width}
13+
height={height}
14+
viewBox="0 0 24 24"
15+
xmlns="http://www.w3.org/2000/svg"
16+
{...props}
17+
>
18+
<path
19+
d="M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-8 3.58-8 8h2c0-3.31 2.69-6 6-6 1.66 0 3.14.83 4.07 2.09L13 11h7V4l-2.35 2.35zM6.35 17.65C7.8 19.1 9.79 20 12 20c4.42 0 8-3.58 8-8h-2c0 3.31-2.69 6-6 6-1.66 0-3.14-.83-4.07-2.09L11 13H4v7l2.35-2.35z"
20+
fill={fill}
21+
/>
22+
</svg>
23+
);
24+
};
25+
26+
export default RefreshIcon;

src/icons/Refresh/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { default as RefreshIcon } from './RefreshIcon';

src/icons/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ export * from './Question';
100100
export * from './Read';
101101
export * from './Rectangle';
102102
export * from './Redo';
103+
export * from './Refresh';
103104
export * from './Remove';
104105
export * from './Reset';
105106
export * from './Resize';

0 commit comments

Comments
 (0)