diff --git a/src/components/Icon/Icon.tsx b/src/components/Icon/Icon.tsx index 8307aeaf8..40fd65fed 100644 --- a/src/components/Icon/Icon.tsx +++ b/src/components/Icon/Icon.tsx @@ -93,7 +93,6 @@ import { BarChartSearchIcon } from "./internal/BarChartSearchIcon"; import { CheckThinIcon } from "./internal/CheckThinIcon"; import { ImageCheckIcon } from "./internal/ImageCheckIcon"; import { Group2Icon } from "./internal/Group2Icon"; -import { CloseCircle2Icon } from "./internal/CloseCircle2Icon"; export type IconName = | "dashboard" @@ -186,8 +185,7 @@ export type IconName = | "bar_chart_search" | "check_thin" | "image_check" - | "group2" - | "close_circle2"; + | "group2"; type IconType = "fill" | "line"; type IconColor = IconType | "active" | string; @@ -297,7 +295,6 @@ export const icons: { check_thin: CheckThinIcon, image_check: ImageCheckIcon, group2: Group2Icon, - close_circle2: CloseCircle2Icon, }; const iconFactory = (name: IconName) => { diff --git a/src/components/Icon/internal/CloseCircle2Icon/index.tsx b/src/components/Icon/internal/CloseCircle2Icon/index.tsx deleted file mode 100644 index b80f947c9..000000000 --- a/src/components/Icon/internal/CloseCircle2Icon/index.tsx +++ /dev/null @@ -1,30 +0,0 @@ -import * as React from "react"; -import { IconProps } from "../../Icon"; - -const CloseCircle2Icon: React.FunctionComponent = ({ - fill, - type, -}) => { - switch (type) { - case "fill": - return ( - - - - ); - case "line": - return ( - - - - ); - } -}; - -export { CloseCircle2Icon }; diff --git a/src/components/Icon/internal/CloseCircleIcon/index.tsx b/src/components/Icon/internal/CloseCircleIcon/index.tsx index ae0c3da99..7055d384a 100644 --- a/src/components/Icon/internal/CloseCircleIcon/index.tsx +++ b/src/components/Icon/internal/CloseCircleIcon/index.tsx @@ -1,40 +1,30 @@ import * as React from "react"; import { IconProps } from "../../Icon"; -const CloseCircleIcon: React.FunctionComponent = ({ fill }) => { - return ( - - - - - = ({ + fill, + type = "fill", +}) => { + switch (type) { + case "fill": + return ( + + - - - - - - - - - - ); + + ); + case "line": + return ( + + + + ); + } }; export { CloseCircleIcon };