Skip to content

Commit

Permalink
refactor(svg): split up Add icons, and rename AddIconCircleBordered t…
Browse files Browse the repository at this point in the history
…o AddCircleIcon

BREAKING CHANGE: Renamed AddIconCircleBordered to AddCircleIcon. Also configured both AddIcon and
AddCircleIcon to use the new IconProps

fix #322
  • Loading branch information
nebula-aac committed Nov 12, 2023
1 parent fefbd34 commit 230b597
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 230b597

Please sign in to comment.