use classnames, remove css
This commit is contained in:
@@ -1,10 +1,9 @@
|
||||
import React from "react";
|
||||
import classnames from "classnames";
|
||||
import { TextProps } from "../Text";
|
||||
import Styles from "../Text.module.css";
|
||||
|
||||
const Title3: React.FunctionComponent<TextProps> = (props: TextProps) => {
|
||||
const classes = classnames(Styles["text--title3"], props?.className, props?.color);
|
||||
const classes = classnames("text-xs font-semibold leading-tight text-gray-900 dark:text-white");
|
||||
|
||||
return <p className={classes}>{props.children}</p>;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user