2020-05-09 03:17:19 +01:00
|
|
|
import BackButton from './back_button'
|
|
|
|
import Heading from './heading'
|
|
|
|
|
|
|
|
export default class ProfileNavigationBar extends PureComponent {
|
|
|
|
|
|
|
|
static propTypes = {
|
2020-05-27 01:33:53 +01:00
|
|
|
titleHTML: PropTypes.string,
|
2020-05-09 03:17:19 +01:00
|
|
|
showBackBtn: PropTypes.bool,
|
|
|
|
}
|
|
|
|
|
|
|
|
render() {
|
2020-05-27 01:33:53 +01:00
|
|
|
const { titleHTML } = this.props
|
2020-05-09 03:17:19 +01:00
|
|
|
|
|
|
|
return (
|
2020-05-14 22:47:33 +01:00
|
|
|
<div className={[_s.default, _s.z4, _s.heightMin53PX, _s.width100PC].join(' ')}>
|
|
|
|
<div className={[_s.default, _s.heightMin53PX, _s.bgNavigation, _s.alignItemsCenter, _s.z3, _s.top0, _s.right0, _s.left0, _s.posFixed].join(' ')} >
|
2020-05-09 03:17:19 +01:00
|
|
|
|
2020-05-14 22:47:33 +01:00
|
|
|
<div className={[_s.default, _s.flexRow, _s.saveAreaInsetPT, _s.saveAreaInsetPL, _s.saveAreaInsetPR, _s.width100PC].join(' ')}>
|
2020-05-09 03:17:19 +01:00
|
|
|
|
|
|
|
<BackButton
|
2020-05-14 22:47:33 +01:00
|
|
|
className={[_s.heightMin53PX, _s.pl10, _s.pr10].join(' ')}
|
2020-05-10 04:26:58 +01:00
|
|
|
iconSize='18px'
|
2020-05-09 03:17:19 +01:00
|
|
|
iconClassName={[_s.mr5, _s.fillNavigation].join(' ')}
|
|
|
|
/>
|
|
|
|
|
2020-05-14 22:47:33 +01:00
|
|
|
<div className={[_s.default, _s.heightMin53PX, _s.justifyContentCenter, _s.mrAuto].join(' ')}>
|
2020-05-09 03:17:19 +01:00
|
|
|
<Heading size='h1'>
|
|
|
|
<span className={[_s.textOverflowEllipsis, _s.colorNavigation].join(' ')}>
|
2020-05-27 01:33:53 +01:00
|
|
|
<div dangerouslySetInnerHTML={{ __html: titleHTML }} />
|
2020-05-09 03:17:19 +01:00
|
|
|
</span>
|
|
|
|
</Heading>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|