mirror of
https://github.com/vercel/commerce.git
synced 2025-07-27 04:01:23 +00:00
♻️ enhan: using heading common in home video
:%s
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
@import '../../../styles/utilities';
|
||||
|
||||
.headingCommon {
|
||||
@apply heading-1 font-heading text-left;
|
||||
@apply heading-2 font-heading text-left;
|
||||
|
||||
&.highlight {
|
||||
color: var(--negative);
|
||||
|
@@ -11,11 +11,11 @@ interface HeadingCommonProps {
|
||||
const HeadingCommon = ({ type='default', align='left', children }: HeadingCommonProps) => {
|
||||
|
||||
return (
|
||||
<h1 className={classNames(s.headingCommon, {
|
||||
<h2 className={classNames(s.headingCommon, {
|
||||
[s[type]]: type,
|
||||
[s[align]]: align
|
||||
})}
|
||||
>{children}</h1>
|
||||
>{children}</h2>
|
||||
)
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user