Skip to content

Commit

Permalink
Merge pull request #323 from layer5io/322-add-icons
Browse files Browse the repository at this point in the history
refactor(svg): split up Add icons
  • Loading branch information
nebula-aac authored Nov 12, 2023
2 parents fefbd34 + 230b597 commit 295a1d4
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 7 deletions.
5 changes: 2 additions & 3 deletions packages/svg/src/icons/Add/AddIcon.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
import { FC } from 'react';
import { DEFAULT_FILL_NONE, DEFAULT_HEIGHT, DEFAULT_WIDTH } from '../../constants/constants';
import { IconProps } from '../types';

export const AddIcon: FC<IconProps> = ({
export const AddIcon = ({
width = DEFAULT_WIDTH,
height = DEFAULT_HEIGHT,
fill = DEFAULT_FILL_NONE,
...props
}) => {
}: IconProps): JSX.Element => {
return (
<svg
width={width}
Expand Down
1 change: 0 additions & 1 deletion packages/svg/src/icons/Add/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
export { default as AddIcon } from './AddIcon';
export { default as AddIconCircleBordered } from './AddIconCircleBordered';
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
import { FC } from 'react';
import { DEFAULT_FILL_NONE, DEFAULT_HEIGHT, DEFAULT_WIDTH } from '../../constants/constants';
import { IconProps } from '../types';

export const AddIconCircleBordered: FC<IconProps> = ({
export const AddIconCircleBordered = ({
width = DEFAULT_WIDTH,
height = DEFAULT_HEIGHT,
fill = DEFAULT_FILL_NONE,
...props
}) => {
}: IconProps): JSX.Element => {
return (
<svg
width={width}
Expand Down
1 change: 1 addition & 0 deletions packages/svg/src/icons/AddCircle/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default as AddCircleIcon } from './AddCircleIcon';
1 change: 1 addition & 0 deletions packages/svg/src/icons/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
export * from './Add';
export * from './AddCircle';
export * from './Application';
export * from './Bell';
export * from './Bus';
Expand Down

0 comments on commit 295a1d4

Please sign in to comment.