Skip to content

Commit 28b72ab

Browse files
Merge pull request #1285 from Canbow/feat/science-icon-clean
feat: add ScienceIcon
2 parents 6a8d333 + e8992b2 commit 28b72ab

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

src/icons/Science/ScienceIcon.tsx

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
import { DEFAULT_HEIGHT, DEFAULT_WIDTH } from '../../constants/constants';
2+
import { IconProps } from '../types';
3+
4+
const KEPPEL_GREEN_FILL = '#00B39F';
5+
6+
export const ScienceIcon = ({
7+
width = DEFAULT_WIDTH,
8+
height = DEFAULT_HEIGHT,
9+
fill = KEPPEL_GREEN_FILL,
10+
...props
11+
}: IconProps): JSX.Element => {
12+
return (
13+
<svg
14+
width={width}
15+
height={height}
16+
xmlns="http://www.w3.org/2000/svg"
17+
viewBox="0 0 24 24"
18+
data-testid="science-icon-svg"
19+
{...props}
20+
>
21+
<path
22+
d="M19.8 18.4L14 10.67V6.5l1.35-1.69c.26-.33.03-.81-.39-.81H9.04c-.42 0-.65.48-.39.81L10 6.5v4.17L4.2 18.4c-.49.66-.02 1.6.8 1.6h14c.82 0 1.29-.94.8-1.6z"
23+
fill={fill}
24+
/>
25+
</svg>
26+
);
27+
};
28+
29+
export default ScienceIcon;

src/icons/Science/index.ts

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

0 commit comments

Comments
 (0)