DocSpace-client/packages/asc-web-common/components/PageLayout/sub-components/article-header.js

36 lines
708 B
JavaScript
Raw Normal View History

import React from 'react';
import styled from 'styled-components';
import equal from 'fast-deep-equal/react';
import { tablet } from '@appserver/components/utils/device';
const StyledArticleHeader = styled.div`
2021-10-06 09:22:28 +00:00
height: 39px;
2021-10-06 12:44:39 +00:00
@media ${tablet} {
height: 39px;
.headline-heading {
margin-top: -5px;
}
2021-10-06 12:44:39 +00:00
}
@media ${tablet} {
display: none;
}
`;
class ArticleHeader extends React.Component {
shouldComponentUpdate(nextProps) {
return !equal(this.props, nextProps);
}
render() {
//console.log("PageLayout ArticleHeader render");
return <StyledArticleHeader {...this.props} />;
}
}
ArticleHeader.displayName = 'ArticleHeader';
export default ArticleHeader;