@@ -4,15 +4,14 @@ import PT from 'prop-types';
44import { connect } from 'react-redux' ;
55import { config } from 'topcoder-react-utils' ;
66import LoadingIndicator from 'components/LoadingIndicator' ;
7- import _ from 'lodash' ;
8- import { getInitials , getSubPageConfiguration } from '../../utils/url' ;
7+ import { getSubPageConfiguration } from '../../utils/url' ;
98import { SSRPlaceholder } from '../../utils/SSR' ;
109import './styles.scss' ;
1110
1211let counter = 0 ;
1312const headerElIdTmpl = 'uninav-headerNav' ;
1413
15- const TopcoderHeader = ( { auth } ) => {
14+ const TopcoderHeader = ( ) => {
1615 const uniNavInitialized = useRef ( false ) ;
1716 const authURLs = config . HEADER_AUTH_URLS ;
1817 const headerRef = useRef ( ) ;
@@ -62,7 +61,7 @@ const TopcoderHeader = ({ auth }) => {
6261 type : navType ,
6362 toolName : getSubPageConfiguration ( ) . toolName ,
6463 toolRoot : getSubPageConfiguration ( ) . toolRoot ,
65- user :'auto' ,
64+ user : 'auto' ,
6665 signOut : ( ) => {
6766 window . location = `${ config . URL . BASE } /logout?ref=nav` ;
6867 } ,
@@ -79,13 +78,6 @@ const TopcoderHeader = ({ auth }) => {
7978 < div styleName = "header-container" id = { headerElId . current } ref = { headerRef } />
8079 ) ;
8180} ;
82- TopcoderHeader . defaultProps = {
83- auth : { } ,
84- } ;
85-
86- TopcoderHeader . propTypes = {
87- auth : PT . shape ( ) ,
88- } ;
8981
9082const mapStateToProps = state => ( {
9183 auth : state . auth ,
0 commit comments