Skip to content

Commit

Permalink
Merge pull request #78 from nebula-aac/group-remove
Browse files Browse the repository at this point in the history
[svg] grouped `remove` icons and added `svg` file for `remove`
  • Loading branch information
aabidsofi19 authored Sep 6, 2023
2 parents 02dea87 + 3783e49 commit 3188e5f
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
import { FC } from 'react';
import { IconProps } from './types';
import { DEFAULT_HEIGHT, DEFAULT_WIDTH } from '../../constants/constants';
import { IconProps } from '../types';

export const RemoveDoneIcon: FC<IconProps> = ({ width, height, ...props }) => {
export const RemoveDoneIcon: FC<IconProps> = ({
width = DEFAULT_WIDTH,
height = DEFAULT_HEIGHT,
...props
}) => {
return (
<svg
width={width}
Expand Down
23 changes: 23 additions & 0 deletions packages/svg/src/icons/Remove/RemoveIcon.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import { FC } from 'react';
import { DEFAULT_HEIGHT, DEFAULT_WIDTH } from '../../constants/constants';
import { IconProps } from '../types';

export const RemoveIcon: FC<IconProps> = ({
width = DEFAULT_WIDTH,
height = DEFAULT_HEIGHT,
...props
}) => {
return (
<svg
width={width}
height={height}
xmlns="http://www.w3.org/2000/svg"
viewBox="0 -960 960 960"
{...props}
>
<path d="M200-440v-80h560v80H200Z" />
</svg>
);
};

export default RemoveIcon;
2 changes: 2 additions & 0 deletions packages/svg/src/icons/Remove/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export { default as RemoveDoneIcon } from './RemoveDoneIcon';
export { default as RemoveIcon } from './RemoveIcon';
1 change: 1 addition & 0 deletions packages/svg/src/icons/Remove/remove.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion packages/svg/src/icons/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export { default as PatternIcon } from './PatternIcon';
// export { default as PodIcon } from "./PodIcon";
// export { default as RectangleShape } from "./RectangleShape";
export { default as RedoIcon } from './RedoIcon';
export { default as RemoveDoneIcon } from './RemoveDoneIcon';
export * from './Remove';
export { default as ResetIcon } from './ResetIcon';
export { default as Ring } from './Ring';
export { default as RoundedRectangleShapeIcon } from './RoundedRectangleShapeIcon';
Expand Down

0 comments on commit 3188e5f

Please sign in to comment.