2020-08-17 21:07:16 +01:00
|
|
|
import React from 'react'
|
2020-08-17 21:59:29 +01:00
|
|
|
import PropTypes from 'prop-types'
|
2020-05-09 03:17:19 +01:00
|
|
|
import BackButton from './back_button'
|
|
|
|
import Heading from './heading'
|
|
|
|
|
2020-08-18 01:57:35 +01:00
|
|
|
class ProfileNavigationBar extends React.PureComponent {
|
2020-05-09 03:17:19 +01:00
|
|
|
|
|
|
|
render() {
|
2020-05-27 01:33:53 +01:00
|
|
|
const { titleHTML } = this.props
|
2020-05-09 03:17:19 +01:00
|
|
|
|
|
|
|
return (
|
2020-08-18 21:49:11 +01:00
|
|
|
<div className={[_s.d, _s.z4, _s.minH53PX, _s.w100PC].join(' ')}>
|
|
|
|
<div className={[_s.d, _s.minH53PX, _s.bgNavigation, _s.aiCenter, _s.z3, _s.top0, _s.right0, _s.left0, _s.posFixed].join(' ')} >
|
2020-05-09 03:17:19 +01:00
|
|
|
|
2020-08-18 21:49:11 +01:00
|
|
|
<div className={[_s.d, _s.flexRow, _s.saveAreaInsetPT, _s.saveAreaInsetPL, _s.saveAreaInsetPR, _s.w100PC].join(' ')}>
|
2020-05-09 03:17:19 +01:00
|
|
|
|
|
|
|
<BackButton
|
2020-08-18 21:43:06 +01:00
|
|
|
className={[_s.minH53PX, _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-08-18 21:49:11 +01:00
|
|
|
<div className={[_s.d, _s.minH53PX, _s.jcCenter, _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>
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
2020-08-18 01:57:35 +01:00
|
|
|
|
|
|
|
ProfileNavigationBar.propTypes = {
|
|
|
|
titleHTML: PropTypes.string,
|
|
|
|
showBackBtn: PropTypes.bool,
|
|
|
|
}
|
|
|
|
|
|
|
|
export default ProfileNavigationBar
|