Skip to content
This repository has been archived by the owner on Jun 5, 2024. It is now read-only.

Commit

Permalink
fix: icon component color bugs (#97)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gyeop authored Dec 13, 2022
1 parent 972b677 commit 04fc6b5
Show file tree
Hide file tree
Showing 293 changed files with 807 additions and 313 deletions.
538 changes: 516 additions & 22 deletions packages/components-rescript/src/generated/Formula__Icon.res

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions packages/components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@
"build": "yarn clean && concurrently \"yarn build:js\" \"yarn build:types\"",
"clean": "rm -rf ./dist",
"start": "concurrently -g -n re,storybook \"yarn re:watch\" \"yarn storybook\"",
"build:ts-icons": "cd src/Icon && yarn dlx @svgr/cli svgs --no-index && node ./templates/export-generator.js",
"build:res-icons": "cd src/Icon && node ./templates/rescript-binder.js",
"build:ts-icons": "cd src/Icon && yarn dlx @svgr/cli svgs --no-index && node ./templates/export-generator.cjs",
"build:res-icons": "cd src/Icon && node ./templates/rescript-binder.cjs",
"svgr": "yarn build:ts-icons && yarn build:res-icons"
}
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// https://react-svgr.com/docs/options/

module.exports = {
template: require("./templates/svgr-cli.template"),
template: require("./templates/svgr-cli.template.cjs"),
// descProp:true,
expandProps: true,
dimensions: true,
Expand Down
2 changes: 1 addition & 1 deletion packages/components/src/Icon/generated/AppleFill.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { colorMap } from "@greenlabs/formula-design-token"
import { convertSizeToPx } from "../utils"
import type { IconProps } from "../types"
const SvgAppleFill = (
{ size = "xl", sizePx, color = "gray-90", ...props }: IconProps,
{ size = "xl", sizePx, color, ...props }: IconProps,
ref: Ref<SVGSVGElement>
) => {
const finalSize = sizePx ? sizePx : convertSizeToPx(size)
Expand Down
2 changes: 1 addition & 1 deletion packages/components/src/Icon/generated/AppleLine.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { colorMap } from "@greenlabs/formula-design-token"
import { convertSizeToPx } from "../utils"
import type { IconProps } from "../types"
const SvgAppleLine = (
{ size = "xl", sizePx, color = "gray-90", ...props }: IconProps,
{ size = "xl", sizePx, color, ...props }: IconProps,
ref: Ref<SVGSVGElement>
) => {
const finalSize = sizePx ? sizePx : convertSizeToPx(size)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { colorMap } from "@greenlabs/formula-design-token"
import { convertSizeToPx } from "../utils"
import type { IconProps } from "../types"
const SvgArrowDownLineBold = (
{ size = "xl", sizePx, color = "gray-90", ...props }: IconProps,
{ size = "xl", sizePx, color, ...props }: IconProps,
ref: Ref<SVGSVGElement>
) => {
const finalSize = sizePx ? sizePx : convertSizeToPx(size)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { colorMap } from "@greenlabs/formula-design-token"
import { convertSizeToPx } from "../utils"
import type { IconProps } from "../types"
const SvgArrowDownLineRegular = (
{ size = "xl", sizePx, color = "gray-90", ...props }: IconProps,
{ size = "xl", sizePx, color, ...props }: IconProps,
ref: Ref<SVGSVGElement>
) => {
const finalSize = sizePx ? sizePx : convertSizeToPx(size)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { colorMap } from "@greenlabs/formula-design-token"
import { convertSizeToPx } from "../utils"
import type { IconProps } from "../types"
const SvgArrowDownLineThin = (
{ size = "xl", sizePx, color = "gray-90", ...props }: IconProps,
{ size = "xl", sizePx, color, ...props }: IconProps,
ref: Ref<SVGSVGElement>
) => {
const finalSize = sizePx ? sizePx : convertSizeToPx(size)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { colorMap } from "@greenlabs/formula-design-token"
import { convertSizeToPx } from "../utils"
import type { IconProps } from "../types"
const SvgArrowLeftLineBold = (
{ size = "xl", sizePx, color = "gray-90", ...props }: IconProps,
{ size = "xl", sizePx, color, ...props }: IconProps,
ref: Ref<SVGSVGElement>
) => {
const finalSize = sizePx ? sizePx : convertSizeToPx(size)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { colorMap } from "@greenlabs/formula-design-token"
import { convertSizeToPx } from "../utils"
import type { IconProps } from "../types"
const SvgArrowLeftLineRegular = (
{ size = "xl", sizePx, color = "gray-90", ...props }: IconProps,
{ size = "xl", sizePx, color, ...props }: IconProps,
ref: Ref<SVGSVGElement>
) => {
const finalSize = sizePx ? sizePx : convertSizeToPx(size)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { colorMap } from "@greenlabs/formula-design-token"
import { convertSizeToPx } from "../utils"
import type { IconProps } from "../types"
const SvgArrowLeftLineThin = (
{ size = "xl", sizePx, color = "gray-90", ...props }: IconProps,
{ size = "xl", sizePx, color, ...props }: IconProps,
ref: Ref<SVGSVGElement>
) => {
const finalSize = sizePx ? sizePx : convertSizeToPx(size)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { colorMap } from "@greenlabs/formula-design-token"
import { convertSizeToPx } from "../utils"
import type { IconProps } from "../types"
const SvgArrowRightLineBold = (
{ size = "xl", sizePx, color = "gray-90", ...props }: IconProps,
{ size = "xl", sizePx, color, ...props }: IconProps,
ref: Ref<SVGSVGElement>
) => {
const finalSize = sizePx ? sizePx : convertSizeToPx(size)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { colorMap } from "@greenlabs/formula-design-token"
import { convertSizeToPx } from "../utils"
import type { IconProps } from "../types"
const SvgArrowRightLineRegular = (
{ size = "xl", sizePx, color = "gray-90", ...props }: IconProps,
{ size = "xl", sizePx, color, ...props }: IconProps,
ref: Ref<SVGSVGElement>
) => {
const finalSize = sizePx ? sizePx : convertSizeToPx(size)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { colorMap } from "@greenlabs/formula-design-token"
import { convertSizeToPx } from "../utils"
import type { IconProps } from "../types"
const SvgArrowRightLineThin = (
{ size = "xl", sizePx, color = "gray-90", ...props }: IconProps,
{ size = "xl", sizePx, color, ...props }: IconProps,
ref: Ref<SVGSVGElement>
) => {
const finalSize = sizePx ? sizePx : convertSizeToPx(size)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { colorMap } from "@greenlabs/formula-design-token"
import { convertSizeToPx } from "../utils"
import type { IconProps } from "../types"
const SvgArrowTriangleDownFill = (
{ size = "xl", sizePx, color = "gray-90", ...props }: IconProps,
{ size = "xl", sizePx, color, ...props }: IconProps,
ref: Ref<SVGSVGElement>
) => {
const finalSize = sizePx ? sizePx : convertSizeToPx(size)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { colorMap } from "@greenlabs/formula-design-token"
import { convertSizeToPx } from "../utils"
import type { IconProps } from "../types"
const SvgArrowTriangleDownLineBold = (
{ size = "xl", sizePx, color = "gray-90", ...props }: IconProps,
{ size = "xl", sizePx, color, ...props }: IconProps,
ref: Ref<SVGSVGElement>
) => {
const finalSize = sizePx ? sizePx : convertSizeToPx(size)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { colorMap } from "@greenlabs/formula-design-token"
import { convertSizeToPx } from "../utils"
import type { IconProps } from "../types"
const SvgArrowTriangleDownLineRegular = (
{ size = "xl", sizePx, color = "gray-90", ...props }: IconProps,
{ size = "xl", sizePx, color, ...props }: IconProps,
ref: Ref<SVGSVGElement>
) => {
const finalSize = sizePx ? sizePx : convertSizeToPx(size)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { colorMap } from "@greenlabs/formula-design-token"
import { convertSizeToPx } from "../utils"
import type { IconProps } from "../types"
const SvgArrowTriangleDownLineThin = (
{ size = "xl", sizePx, color = "gray-90", ...props }: IconProps,
{ size = "xl", sizePx, color, ...props }: IconProps,
ref: Ref<SVGSVGElement>
) => {
const finalSize = sizePx ? sizePx : convertSizeToPx(size)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { colorMap } from "@greenlabs/formula-design-token"
import { convertSizeToPx } from "../utils"
import type { IconProps } from "../types"
const SvgArrowTriangleUpFill = (
{ size = "xl", sizePx, color = "gray-90", ...props }: IconProps,
{ size = "xl", sizePx, color, ...props }: IconProps,
ref: Ref<SVGSVGElement>
) => {
const finalSize = sizePx ? sizePx : convertSizeToPx(size)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { colorMap } from "@greenlabs/formula-design-token"
import { convertSizeToPx } from "../utils"
import type { IconProps } from "../types"
const SvgArrowTriangleUpLineBold = (
{ size = "xl", sizePx, color = "gray-90", ...props }: IconProps,
{ size = "xl", sizePx, color, ...props }: IconProps,
ref: Ref<SVGSVGElement>
) => {
const finalSize = sizePx ? sizePx : convertSizeToPx(size)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { colorMap } from "@greenlabs/formula-design-token"
import { convertSizeToPx } from "../utils"
import type { IconProps } from "../types"
const SvgArrowTriangleUpLineRegular = (
{ size = "xl", sizePx, color = "gray-90", ...props }: IconProps,
{ size = "xl", sizePx, color, ...props }: IconProps,
ref: Ref<SVGSVGElement>
) => {
const finalSize = sizePx ? sizePx : convertSizeToPx(size)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { colorMap } from "@greenlabs/formula-design-token"
import { convertSizeToPx } from "../utils"
import type { IconProps } from "../types"
const SvgArrowTriangleUpLineThin = (
{ size = "xl", sizePx, color = "gray-90", ...props }: IconProps,
{ size = "xl", sizePx, color, ...props }: IconProps,
ref: Ref<SVGSVGElement>
) => {
const finalSize = sizePx ? sizePx : convertSizeToPx(size)
Expand Down
2 changes: 1 addition & 1 deletion packages/components/src/Icon/generated/ArrowUpLineBold.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { colorMap } from "@greenlabs/formula-design-token"
import { convertSizeToPx } from "../utils"
import type { IconProps } from "../types"
const SvgArrowUpLineBold = (
{ size = "xl", sizePx, color = "gray-90", ...props }: IconProps,
{ size = "xl", sizePx, color, ...props }: IconProps,
ref: Ref<SVGSVGElement>
) => {
const finalSize = sizePx ? sizePx : convertSizeToPx(size)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { colorMap } from "@greenlabs/formula-design-token"
import { convertSizeToPx } from "../utils"
import type { IconProps } from "../types"
const SvgArrowUpLineRegular = (
{ size = "xl", sizePx, color = "gray-90", ...props }: IconProps,
{ size = "xl", sizePx, color, ...props }: IconProps,
ref: Ref<SVGSVGElement>
) => {
const finalSize = sizePx ? sizePx : convertSizeToPx(size)
Expand Down
2 changes: 1 addition & 1 deletion packages/components/src/Icon/generated/ArrowUpLineThin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { colorMap } from "@greenlabs/formula-design-token"
import { convertSizeToPx } from "../utils"
import type { IconProps } from "../types"
const SvgArrowUpLineThin = (
{ size = "xl", sizePx, color = "gray-90", ...props }: IconProps,
{ size = "xl", sizePx, color, ...props }: IconProps,
ref: Ref<SVGSVGElement>
) => {
const finalSize = sizePx ? sizePx : convertSizeToPx(size)
Expand Down
2 changes: 1 addition & 1 deletion packages/components/src/Icon/generated/BookMarkFill.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { colorMap } from "@greenlabs/formula-design-token"
import { convertSizeToPx } from "../utils"
import type { IconProps } from "../types"
const SvgBookMarkFill = (
{ size = "xl", sizePx, color = "gray-90", ...props }: IconProps,
{ size = "xl", sizePx, color, ...props }: IconProps,
ref: Ref<SVGSVGElement>
) => {
const finalSize = sizePx ? sizePx : convertSizeToPx(size)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { colorMap } from "@greenlabs/formula-design-token"
import { convertSizeToPx } from "../utils"
import type { IconProps } from "../types"
const SvgBookMarkLineBold = (
{ size = "xl", sizePx, color = "gray-90", ...props }: IconProps,
{ size = "xl", sizePx, color, ...props }: IconProps,
ref: Ref<SVGSVGElement>
) => {
const finalSize = sizePx ? sizePx : convertSizeToPx(size)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { colorMap } from "@greenlabs/formula-design-token"
import { convertSizeToPx } from "../utils"
import type { IconProps } from "../types"
const SvgBookMarkLineRegular = (
{ size = "xl", sizePx, color = "gray-90", ...props }: IconProps,
{ size = "xl", sizePx, color, ...props }: IconProps,
ref: Ref<SVGSVGElement>
) => {
const finalSize = sizePx ? sizePx : convertSizeToPx(size)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { colorMap } from "@greenlabs/formula-design-token"
import { convertSizeToPx } from "../utils"
import type { IconProps } from "../types"
const SvgBookMarkLineThin = (
{ size = "xl", sizePx, color = "gray-90", ...props }: IconProps,
{ size = "xl", sizePx, color, ...props }: IconProps,
ref: Ref<SVGSVGElement>
) => {
const finalSize = sizePx ? sizePx : convertSizeToPx(size)
Expand Down
2 changes: 1 addition & 1 deletion packages/components/src/Icon/generated/CalendarFill.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { colorMap } from "@greenlabs/formula-design-token"
import { convertSizeToPx } from "../utils"
import type { IconProps } from "../types"
const SvgCalendarFill = (
{ size = "xl", sizePx, color = "gray-90", ...props }: IconProps,
{ size = "xl", sizePx, color, ...props }: IconProps,
ref: Ref<SVGSVGElement>
) => {
const finalSize = sizePx ? sizePx : convertSizeToPx(size)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { colorMap } from "@greenlabs/formula-design-token"
import { convertSizeToPx } from "../utils"
import type { IconProps } from "../types"
const SvgCalendarLineBold = (
{ size = "xl", sizePx, color = "gray-90", ...props }: IconProps,
{ size = "xl", sizePx, color, ...props }: IconProps,
ref: Ref<SVGSVGElement>
) => {
const finalSize = sizePx ? sizePx : convertSizeToPx(size)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { colorMap } from "@greenlabs/formula-design-token"
import { convertSizeToPx } from "../utils"
import type { IconProps } from "../types"
const SvgCalendarLineRegular = (
{ size = "xl", sizePx, color = "gray-90", ...props }: IconProps,
{ size = "xl", sizePx, color, ...props }: IconProps,
ref: Ref<SVGSVGElement>
) => {
const finalSize = sizePx ? sizePx : convertSizeToPx(size)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { colorMap } from "@greenlabs/formula-design-token"
import { convertSizeToPx } from "../utils"
import type { IconProps } from "../types"
const SvgCalendarLineThin = (
{ size = "xl", sizePx, color = "gray-90", ...props }: IconProps,
{ size = "xl", sizePx, color, ...props }: IconProps,
ref: Ref<SVGSVGElement>
) => {
const finalSize = sizePx ? sizePx : convertSizeToPx(size)
Expand Down
2 changes: 1 addition & 1 deletion packages/components/src/Icon/generated/CameraFill.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { colorMap } from "@greenlabs/formula-design-token"
import { convertSizeToPx } from "../utils"
import type { IconProps } from "../types"
const SvgCameraFill = (
{ size = "xl", sizePx, color = "gray-90", ...props }: IconProps,
{ size = "xl", sizePx, color, ...props }: IconProps,
ref: Ref<SVGSVGElement>
) => {
const finalSize = sizePx ? sizePx : convertSizeToPx(size)
Expand Down
2 changes: 1 addition & 1 deletion packages/components/src/Icon/generated/CameraLineBold.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { colorMap } from "@greenlabs/formula-design-token"
import { convertSizeToPx } from "../utils"
import type { IconProps } from "../types"
const SvgCameraLineBold = (
{ size = "xl", sizePx, color = "gray-90", ...props }: IconProps,
{ size = "xl", sizePx, color, ...props }: IconProps,
ref: Ref<SVGSVGElement>
) => {
const finalSize = sizePx ? sizePx : convertSizeToPx(size)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { colorMap } from "@greenlabs/formula-design-token"
import { convertSizeToPx } from "../utils"
import type { IconProps } from "../types"
const SvgCameraLineRegular = (
{ size = "xl", sizePx, color = "gray-90", ...props }: IconProps,
{ size = "xl", sizePx, color, ...props }: IconProps,
ref: Ref<SVGSVGElement>
) => {
const finalSize = sizePx ? sizePx : convertSizeToPx(size)
Expand Down
2 changes: 1 addition & 1 deletion packages/components/src/Icon/generated/CameraLineThin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { colorMap } from "@greenlabs/formula-design-token"
import { convertSizeToPx } from "../utils"
import type { IconProps } from "../types"
const SvgCameraLineThin = (
{ size = "xl", sizePx, color = "gray-90", ...props }: IconProps,
{ size = "xl", sizePx, color, ...props }: IconProps,
ref: Ref<SVGSVGElement>
) => {
const finalSize = sizePx ? sizePx : convertSizeToPx(size)
Expand Down
2 changes: 1 addition & 1 deletion packages/components/src/Icon/generated/CartFill.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { colorMap } from "@greenlabs/formula-design-token"
import { convertSizeToPx } from "../utils"
import type { IconProps } from "../types"
const SvgCartFill = (
{ size = "xl", sizePx, color = "gray-90", ...props }: IconProps,
{ size = "xl", sizePx, color, ...props }: IconProps,
ref: Ref<SVGSVGElement>
) => {
const finalSize = sizePx ? sizePx : convertSizeToPx(size)
Expand Down
2 changes: 1 addition & 1 deletion packages/components/src/Icon/generated/CartLineBold.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { colorMap } from "@greenlabs/formula-design-token"
import { convertSizeToPx } from "../utils"
import type { IconProps } from "../types"
const SvgCartLineBold = (
{ size = "xl", sizePx, color = "gray-90", ...props }: IconProps,
{ size = "xl", sizePx, color, ...props }: IconProps,
ref: Ref<SVGSVGElement>
) => {
const finalSize = sizePx ? sizePx : convertSizeToPx(size)
Expand Down
2 changes: 1 addition & 1 deletion packages/components/src/Icon/generated/CartLineRegular.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { colorMap } from "@greenlabs/formula-design-token"
import { convertSizeToPx } from "../utils"
import type { IconProps } from "../types"
const SvgCartLineRegular = (
{ size = "xl", sizePx, color = "gray-90", ...props }: IconProps,
{ size = "xl", sizePx, color, ...props }: IconProps,
ref: Ref<SVGSVGElement>
) => {
const finalSize = sizePx ? sizePx : convertSizeToPx(size)
Expand Down
2 changes: 1 addition & 1 deletion packages/components/src/Icon/generated/CartLineThin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { colorMap } from "@greenlabs/formula-design-token"
import { convertSizeToPx } from "../utils"
import type { IconProps } from "../types"
const SvgCartLineThin = (
{ size = "xl", sizePx, color = "gray-90", ...props }: IconProps,
{ size = "xl", sizePx, color, ...props }: IconProps,
ref: Ref<SVGSVGElement>
) => {
const finalSize = sizePx ? sizePx : convertSizeToPx(size)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { colorMap } from "@greenlabs/formula-design-token"
import { convertSizeToPx } from "../utils"
import type { IconProps } from "../types"
const SvgCertificationFill = (
{ size = "xl", sizePx, color = "gray-90", ...props }: IconProps,
{ size = "xl", sizePx, color, ...props }: IconProps,
ref: Ref<SVGSVGElement>
) => {
const finalSize = sizePx ? sizePx : convertSizeToPx(size)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { colorMap } from "@greenlabs/formula-design-token"
import { convertSizeToPx } from "../utils"
import type { IconProps } from "../types"
const SvgCertificationLineBold = (
{ size = "xl", sizePx, color = "gray-90", ...props }: IconProps,
{ size = "xl", sizePx, color, ...props }: IconProps,
ref: Ref<SVGSVGElement>
) => {
const finalSize = sizePx ? sizePx : convertSizeToPx(size)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { colorMap } from "@greenlabs/formula-design-token"
import { convertSizeToPx } from "../utils"
import type { IconProps } from "../types"
const SvgCertificationLineRegular = (
{ size = "xl", sizePx, color = "gray-90", ...props }: IconProps,
{ size = "xl", sizePx, color, ...props }: IconProps,
ref: Ref<SVGSVGElement>
) => {
const finalSize = sizePx ? sizePx : convertSizeToPx(size)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { colorMap } from "@greenlabs/formula-design-token"
import { convertSizeToPx } from "../utils"
import type { IconProps } from "../types"
const SvgCertificationLineThin = (
{ size = "xl", sizePx, color = "gray-90", ...props }: IconProps,
{ size = "xl", sizePx, color, ...props }: IconProps,
ref: Ref<SVGSVGElement>
) => {
const finalSize = sizePx ? sizePx : convertSizeToPx(size)
Expand Down
Loading

0 comments on commit 04fc6b5

Please sign in to comment.