File indexing completed on 2025-01-26 05:27:58
0001 import React from 'react'; 0002 import SiteHeaderLoginMenu from './SiteHeaderLoginMenu'; 0003 class MobileUserContainer extends React.Component { 0004 constructor(props){ 0005 super(props); 0006 this.state = {}; 0007 } 0008 0009 render(){ 0010 0011 let userDisplay; 0012 if (this.props.user){ 0013 // userDisplay = ( 0014 // <SiteHeaderUserMenu 0015 // serverUrl={this.state.serverUrl} 0016 // baseUrl={this.state.baseUrl} 0017 // user={this.props.user} 0018 // /> 0019 // ); 0020 } else { 0021 userDisplay = ( 0022 <SiteHeaderLoginMenu 0023 user={this.props.user} 0024 baseUrl={this.props.baseUrl} 0025 template={this.props.template} 0026 redirectString={this.props.redirectString} 0027 /> 0028 ); 0029 } 0030 0031 return ( 0032 <div id="mobile-user-container"> 0033 {userDisplay} 0034 </div> 0035 ) 0036 } 0037 } 0038 0039 export default MobileUserContainer;