Skip to content

Commit c7d083b

Browse files
committed
Lint errors
1 parent fbf0f2c commit c7d083b

File tree

1 file changed

+3
-11
lines changed
  • src/shared/containers/TopcoderHeader

1 file changed

+3
-11
lines changed

src/shared/containers/TopcoderHeader/index.jsx

+3-11
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,14 @@ import PT from 'prop-types';
44
import { connect } from 'react-redux';
55
import { config } from 'topcoder-react-utils';
66
import LoadingIndicator from 'components/LoadingIndicator';
7-
import _ from 'lodash';
8-
import { getInitials, getSubPageConfiguration } from '../../utils/url';
7+
import { getSubPageConfiguration } from '../../utils/url';
98
import { SSRPlaceholder } from '../../utils/SSR';
109
import './styles.scss';
1110

1211
let counter = 0;
1312
const 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

9082
const mapStateToProps = state => ({
9183
auth: state.auth,

0 commit comments

Comments
 (0)