|
|
@ -13,6 +13,7 @@ export default class Column extends React.PureComponent {
|
|
|
|
children: PropTypes.node,
|
|
|
|
children: PropTypes.node,
|
|
|
|
active: PropTypes.bool,
|
|
|
|
active: PropTypes.bool,
|
|
|
|
hideHeadingOnMobile: PropTypes.bool,
|
|
|
|
hideHeadingOnMobile: PropTypes.bool,
|
|
|
|
|
|
|
|
name: PropTypes.string,
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
handleHeaderClick = () => {
|
|
|
|
handleHeaderClick = () => {
|
|
|
@ -47,7 +48,7 @@ export default class Column extends React.PureComponent {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
render () {
|
|
|
|
render () {
|
|
|
|
const { heading, icon, children, active, hideHeadingOnMobile } = this.props;
|
|
|
|
const { heading, icon, children, active, hideHeadingOnMobile, name } = this.props;
|
|
|
|
|
|
|
|
|
|
|
|
const showHeading = heading && (!hideHeadingOnMobile || (hideHeadingOnMobile && !isMobile(window.innerWidth)));
|
|
|
|
const showHeading = heading && (!hideHeadingOnMobile || (hideHeadingOnMobile && !isMobile(window.innerWidth)));
|
|
|
|
|
|
|
|
|
|
|
@ -59,6 +60,7 @@ export default class Column extends React.PureComponent {
|
|
|
|
<div
|
|
|
|
<div
|
|
|
|
ref={this.setRef}
|
|
|
|
ref={this.setRef}
|
|
|
|
role='region'
|
|
|
|
role='region'
|
|
|
|
|
|
|
|
data-column={name}
|
|
|
|
aria-labelledby={columnHeaderId}
|
|
|
|
aria-labelledby={columnHeaderId}
|
|
|
|
className='column'
|
|
|
|
className='column'
|
|
|
|
onScroll={this.handleScroll}
|
|
|
|
onScroll={this.handleScroll}
|
|
|
|