2019-09-12 12:15:22 +00:00
|
|
|
import React from "react";
|
|
|
|
import styled from "styled-components";
|
2020-12-08 11:09:46 +00:00
|
|
|
import equal from "fast-deep-equal/react";
|
2021-10-06 09:22:28 +00:00
|
|
|
import { tablet } from "@appserver/components/utils/device";
|
2019-07-20 09:48:29 +00:00
|
|
|
|
|
|
|
const StyledArticleHeader = styled.div`
|
2021-10-06 09:22:28 +00:00
|
|
|
height: 39px;
|
2020-02-13 09:39:32 +00:00
|
|
|
|
2021-10-06 12:44:39 +00:00
|
|
|
@media ${tablet} {
|
2021-10-01 13:51:28 +00:00
|
|
|
height: 39px;
|
|
|
|
|
|
|
|
.headline-heading {
|
|
|
|
margin-top: -5px;
|
|
|
|
}
|
2021-10-06 12:44:39 +00:00
|
|
|
}
|
2021-10-01 13:51:28 +00:00
|
|
|
|
2021-10-06 09:22:28 +00:00
|
|
|
@media ${tablet} {
|
2020-02-13 09:39:32 +00:00
|
|
|
display: none;
|
2020-10-16 12:38:04 +00:00
|
|
|
}
|
2019-07-20 09:48:29 +00:00
|
|
|
`;
|
|
|
|
|
2020-08-11 12:35:24 +00:00
|
|
|
class ArticleHeader extends React.Component {
|
|
|
|
shouldComponentUpdate(nextProps) {
|
2020-12-08 11:09:46 +00:00
|
|
|
return !equal(this.props, nextProps);
|
2020-08-11 12:35:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
render() {
|
|
|
|
//console.log("PageLayout ArticleHeader render");
|
|
|
|
return <StyledArticleHeader {...this.props} />;
|
|
|
|
}
|
|
|
|
}
|
2019-07-20 09:48:29 +00:00
|
|
|
|
2019-09-12 12:15:22 +00:00
|
|
|
ArticleHeader.displayName = "ArticleHeader";
|
|
|
|
|
|
|
|
export default ArticleHeader;
|