fix: styles missing on headline component (#366)

This commit is contained in:
Femi Odugbesan 2021-07-15 09:19:17 -05:00 committed by GitHub
parent 45689059c7
commit f7a9c077b0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,9 +1,10 @@
import React from "react"; import React from "react";
import classnames from "classnames"; import classnames from "classnames";
import { TextProps } from "../Text"; import { TextProps } from "../Text";
import Styles from "../Text.module.css";
const Headline: React.FunctionComponent<TextProps> = (props: TextProps) => { const Headline: React.FunctionComponent<TextProps> = (props: TextProps) => {
const classes = classnames("text--headline", props?.className, props?.color); const classes = classnames(Styles["text--headline"], props?.className, props?.color);
return <h1 className={classes}>{props.children}</h1>; return <h1 className={classes}>{props.children}</h1>;
}; };