Skip to content

Commit f719dcd

Browse files
committed
Move out inline style to .scss file
1 parent e0ff94e commit f719dcd

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

__tests__/shared/components/Header/__snapshots__/index.jsx.snap

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,7 @@
22

33
exports[`Default render 1`] = `
44
<div
5-
style={
6-
Object {
7-
"zIndex": 2,
8-
}
9-
}
5+
className="src-shared-components-Header-___style__nav-header-wrapper___2HtiH"
106
>
117
<TopNav
128
loggedIn={true}

src/shared/components/Header/index.jsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ import { config } from 'topcoder-react-utils';
55
import Logo from 'assets/images/tc-logo.svg';
66
import { tracking } from '../../actions';
77

8+
import './style.scss';
9+
810
let TopNavRef;
911
let LoginNavRef;
1012

@@ -69,7 +71,7 @@ const Header = ({
6971

7072
if (TopNavRef) {
7173
return (
72-
<div style={{ zIndex: 2 }}>
74+
<div styleName="nav-header-wrapper">
7375
<TopNavRef
7476
menu={headerMenu || config.HEADER_MENU}
7577
rightMenu={(

0 commit comments

Comments
 (0)