@@ -4,15 +4,14 @@ import PT from 'prop-types';
4
4
import { connect } from 'react-redux' ;
5
5
import { config } from 'topcoder-react-utils' ;
6
6
import LoadingIndicator from 'components/LoadingIndicator' ;
7
- import _ from 'lodash' ;
8
- import { getInitials , getSubPageConfiguration } from '../../utils/url' ;
7
+ import { getSubPageConfiguration } from '../../utils/url' ;
9
8
import { SSRPlaceholder } from '../../utils/SSR' ;
10
9
import './styles.scss' ;
11
10
12
11
let counter = 0 ;
13
12
const headerElIdTmpl = 'uninav-headerNav' ;
14
13
15
- const TopcoderHeader = ( { auth } ) => {
14
+ const TopcoderHeader = ( ) => {
16
15
const uniNavInitialized = useRef ( false ) ;
17
16
const authURLs = config . HEADER_AUTH_URLS ;
18
17
const headerRef = useRef ( ) ;
@@ -62,7 +61,7 @@ const TopcoderHeader = ({ auth }) => {
62
61
type : navType ,
63
62
toolName : getSubPageConfiguration ( ) . toolName ,
64
63
toolRoot : getSubPageConfiguration ( ) . toolRoot ,
65
- user :'auto' ,
64
+ user : 'auto' ,
66
65
signOut : ( ) => {
67
66
window . location = `${ config . URL . BASE } /logout?ref=nav` ;
68
67
} ,
@@ -79,13 +78,6 @@ const TopcoderHeader = ({ auth }) => {
79
78
< div styleName = "header-container" id = { headerElId . current } ref = { headerRef } />
80
79
) ;
81
80
} ;
82
- TopcoderHeader . defaultProps = {
83
- auth : { } ,
84
- } ;
85
-
86
- TopcoderHeader . propTypes = {
87
- auth : PT . shape ( ) ,
88
- } ;
89
81
90
82
const mapStateToProps = state => ( {
91
83
auth : state . auth ,
0 commit comments