MM-17630 add Navigation bar to terms of service modal (#3103)
This commit is contained in:
parent
eb314d714a
commit
9ae69d9b43
1 changed files with 11 additions and 3 deletions
|
|
@ -169,16 +169,24 @@ export default class ChannelBase extends PureComponent {
|
|||
};
|
||||
|
||||
showTermsOfServiceModal = async () => {
|
||||
const {intl} = this.context;
|
||||
const {actions, theme} = this.props;
|
||||
const closeButton = await MaterialIcon.getImageSource('close', 20, theme.sidebarHeaderTextColor);
|
||||
const screen = 'TermsOfService';
|
||||
const passProps = {
|
||||
closeButton,
|
||||
};
|
||||
const passProps = {closeButton};
|
||||
const title = intl.formatMessage({id: 'mobile.tos_link', defaultMessage: 'Terms of Service'});
|
||||
const options = {
|
||||
layout: {
|
||||
backgroundColor: theme.centerChannelBg,
|
||||
},
|
||||
topBar: {
|
||||
visible: true,
|
||||
height: null,
|
||||
title: {
|
||||
color: theme.sidebarHeaderTextColor,
|
||||
text: title,
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
actions.showModalOverCurrentContext(screen, passProps, options);
|
||||
|
|
|
|||
Loading…
Reference in a new issue