This commit is contained in:
mgabdev
2020-02-22 18:26:23 -05:00
parent bebc39f150
commit d255982ec5
39 changed files with 1054 additions and 885 deletions

View File

@@ -1,4 +1,5 @@
import { injectIntl, defineMessages } from 'react-intl'
import TabBar from './tab_bar'
import Icon from './icon'
import Button from './button'
import Heading from './heading'
@@ -23,6 +24,7 @@ class ColumnHeader extends PureComponent {
children: PropTypes.node,
showBackBtn: PropTypes.bool,
actions: PropTypes.array,
tabs: PropTypes.array,
}
state = {
@@ -49,7 +51,7 @@ class ColumnHeader extends PureComponent {
}
render() {
const { title, showBackBtn, icon, active, children, actions, intl: { formatMessage } } = this.props
const { title, showBackBtn, tabs, icon, active, children, actions, intl: { formatMessage } } = this.props
const { collapsed } = this.state
return (
@@ -61,12 +63,17 @@ class ColumnHeader extends PureComponent {
</button>
}
<div className={[_s.default, _s.height100PC, _s.justifyContentCenter].join(' ')}>
<div className={[_s.default, _s.height100PC, _s.justifyContentCenter, _s.marginRight10PX].join(' ')}>
<Heading size='h1'>
{title}
</Heading>
</div>
{
!!tabs &&
<TabBar tabs={tabs} />
}
{
!!actions &&
<div className={[_s.default, _s.backgroundTransparent, _s.flexRow, _s.alignItemsCenter, _s.justifyContentCenter, _s.marginLeftAuto].join(' ')}>