import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Link } from 'react-router'; import { landingIsShown } from '../actions'; const links = { 'android': 'https://play.google.com/store/apps/details?id=org.jitsi.meet', 'ios': '' }; /** * React component representing mobile landing page. * * @class Landing */ class Landing extends Component { /** * React lifecycle method triggered after * component is mount. * * @returns {void} */ componentDidMount() { this.props.dispatch(landingIsShown()); } static propTypes = { dispatch: React.PropTypes.func, platform: React.PropTypes.string, room: React.PropTypes.string }; /** * React lifecycle method triggered before * component will mount. * * @returns {void} */ componentWillMount() { const { room } = this.props; let btnText; let link = '/'; if (room) { btnText = 'Join the conversation'; link += room; } else { btnText = 'Start a conference'; } this.setState({ btnText, link }); } /** * Renders landing component. * * @returns {ReactElement} */ render() { const { platform } = this.props; const { btnText, link } = this.state; const primaryButtonClasses = 'landing__button landing__button_primary'; return (

You need Meet Jitsi to join a conversation on your mobile

or if you already have it
then

); } } const mapStateToProps = state => { return { platform: state['features/app'].platform, room: state['features/base/conference'].room }; }; export default connect(mapStateToProps)(Landing);