Merge branch 'main' into separateNonFeaturedArticlesOnQuadrantView
# Conflicts: # .lintstagedrc # dist_scripts/src/model.js # src/animation.ts # src/components/Item/Item.tsx # src/components/ItemList/ItemList.tsx # src/components/PageItem/PageItem.tsx # src/index.scss # src/model.js # src/model.ts
This commit is contained in:
@@ -1,6 +1,19 @@
|
||||
import React from 'react';
|
||||
import classNames from 'classnames';
|
||||
import './headline-group.scss';
|
||||
export default function ({ children, secondary = false }: React.PropsWithChildren<{ secondary?: boolean }>) {
|
||||
return <div className={classNames('headline-group', { 'headline-group--secondary': secondary })}>{children}</div>;
|
||||
import React from "react";
|
||||
import classNames from "classnames";
|
||||
import "./headline-group.scss";
|
||||
|
||||
interface Props {
|
||||
secondary?: boolean;
|
||||
}
|
||||
|
||||
const HeadlineGroup: React.FC<Props> = ({ children, secondary = false }) => (
|
||||
<div
|
||||
className={classNames("headline-group", {
|
||||
"headline-group--secondary": secondary,
|
||||
})}
|
||||
>
|
||||
{children}
|
||||
</div>
|
||||
);
|
||||
|
||||
export default HeadlineGroup;
|
||||
|
||||
Reference in New Issue
Block a user