From 9ae69d9b43daf720a742047a6e2f63d596a16067 Mon Sep 17 00:00:00 2001 From: Mattermost Build Date: Sat, 10 Aug 2019 19:24:53 +0200 Subject: [PATCH] MM-17630 add Navigation bar to terms of service modal (#3103) --- app/screens/channel/channel_base.js | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/app/screens/channel/channel_base.js b/app/screens/channel/channel_base.js index 1b1c64031..98fb3411a 100644 --- a/app/screens/channel/channel_base.js +++ b/app/screens/channel/channel_base.js @@ -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);