Files
Yusuke Nemoto 85912e3fc7 [MM-3736] Change HTML messages to Markdown style (#1576)
* Modify messages with <a> to markdown style

* Modify messages with <b> to markdown style

* Modify messages with <strong> to markdown style

* Modiry messages with <br> and <li> to markdown style

* Modify messages with many html tags to markdown style

* trailing spaces

* Remove unused messages with html tags

* Fix styles

* Fix rebase mistakes

* Remove unused message

* Update snapshots

* Fix test error

* Fix messages for search_bar

* Fix url for using subpath

* Fix relative path to getSiteURL
2018-09-05 21:09:47 +08:00

70 lines
2.1 KiB
React

// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
import React from 'react';
import PropTypes from 'prop-types';
import {FormattedMessage} from 'react-intl';
import FormattedMarkdownMessage from 'components/formatted_markdown_message.jsx';
import TutorialTip from './tutorial_tip';
const MenuTutorialTip = ({toggleFunc, onBottom}) => {
const screens = [];
screens.push(
<div>
<h4>
<FormattedMessage
id='sidebar_header.tutorial.title'
defaultMessage='Main Menu'
/>
</h4>
<p>
<FormattedMarkdownMessage
id='sidebar_header.tutorial.body1'
defaultMessage='The **Main Menu** is where you can **Invite New Members**, access your **Account Settings** and set your **Theme Color**.'
/>
</p>
<p>
<FormattedMarkdownMessage
id='sidebar_header.tutorial.body2'
defaultMessage='Team administrators can also access their **Team Settings** from this menu.'
/>
</p>
<p>
<FormattedMarkdownMessage
id='sidebar_header.tutorial.body3'
defaultMessage='System administrators will find a **System Console** option to administrate the entire system.'
/>
</p>
</div>
);
let placement = 'right';
let arrow = 'left';
if (onBottom) {
placement = 'bottom';
arrow = 'up';
}
return (
<div
onClick={toggleFunc}
>
<TutorialTip
placement={placement}
screens={screens}
overlayClass={'tip-overlay--header--' + arrow}
diagnosticsTag='tutorial_tip_3_main_menu'
/>
</div>
);
};
MenuTutorialTip.propTypes = {
toggleFunc: PropTypes.func,
onBottom: PropTypes.bool.isRequired,
};
export default MenuTutorialTip;