From 936c3ac346b62a06b312a175ebcf9a6ccd5ee3ff Mon Sep 17 00:00:00 2001 From: xpa Date: Sat, 1 Jul 2023 00:45:20 +0900 Subject: [PATCH] fix: support tailwind --- src/BaseSvg.tsx | 7 +++---- src/default.module.css | 3 --- 2 files changed, 3 insertions(+), 7 deletions(-) delete mode 100644 src/default.module.css diff --git a/src/BaseSvg.tsx b/src/BaseSvg.tsx index a8ce824..39fa0d1 100644 --- a/src/BaseSvg.tsx +++ b/src/BaseSvg.tsx @@ -1,5 +1,4 @@ import React, { ReactNode } from "react"; -import Styles from "./default.module.css"; import { IconProps } from "@/@types/IconProps"; type props = IconProps & { @@ -18,10 +17,10 @@ export const BaseSvg = ({ width="24" height="24" viewBox="0 0 24 24" - fill="none" + fill="#1a1a1c" xmlns="http://www.w3.org/2000/svg" - className={`${Styles.icon} ${className}`} - style={{ ...(style ?? {}), fill: color }} + className={className} + style={{ fill: color, ...(style ?? {}) }} {...props} > {children} diff --git a/src/default.module.css b/src/default.module.css deleted file mode 100644 index e1dd86c..0000000 --- a/src/default.module.css +++ /dev/null @@ -1,3 +0,0 @@ -.icon { - fill: #1a1a1c; -}