Skip to content

Commit 19eb389

Browse files
Merge pull request #1290 from dpoppe7/feature/icons/refresh-icon
feat(icons): add RefreshIcon component
2 parents ea6926b + f34dd68 commit 19eb389

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-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4z"
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
@@ -103,6 +103,7 @@ export * from './Question';
103103
export * from './Read';
104104
export * from './Rectangle';
105105
export * from './Redo';
106+
export * from './Refresh';
106107
export * from './Remove';
107108
export * from './Reset';
108109
export * from './Resize';

0 commit comments

Comments
 (0)