Skip to content
This repository was archived by the owner on Jun 10, 2019. It is now read-only.

Commit f1659d8

Browse files
kylemhhollomancer
authored andcommitted
Add code-schools to sideNav
1 parent 06120c1 commit f1659d8

2 files changed

Lines changed: 32 additions & 53 deletions

File tree

src/scenes/home/header/sideNav/sideNav.js

Lines changed: 30 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -18,62 +18,36 @@ class SideNav extends Component {
1818
if (mentor) {
1919
return (
2020
<span>
21-
<NavItem
22-
className="menuItem"
23-
to="/mentor-request"
24-
text="Request Help"
25-
onClick={this.handleCloseClick}
26-
/>
27-
<NavItem
28-
className="menuItem"
29-
to="/mentors"
30-
text="Mentors"
31-
onClick={this.handleCloseClick}
32-
/>
33-
<NavItem
34-
className="menuItem"
35-
to="/requests"
36-
text="Requests"
37-
onClick={this.handleCloseClick}
38-
/>
39-
<NavItem
40-
className="menuItem"
41-
to="/squads"
42-
text="Squads"
43-
onClick={this.handleCloseClick}
44-
/>
45-
<button className={styles.navButton} onClick={() => this.props.onLogOutClick()}>Logout</button>
21+
<NavItem to="/mentor-request" text="Request Help" onClick={this.handleCloseClick} />
22+
<NavItem to="/mentors" text="Mentors" onClick={this.handleCloseClick} />
23+
<NavItem to="/requests" text="Requests" onClick={this.handleCloseClick} />
24+
<NavItem to="/squads" text="Squads" onClick={this.handleCloseClick} />
25+
<button
26+
className={styles.navButton}
27+
onClick={() => this.props.onLogOutClick()}
28+
>
29+
Logout
30+
</button>
4631
</span>
4732
);
4833
}
4934
return (
5035
<span>
51-
<NavItem
52-
className="menuItem"
53-
to="/mentor-request"
54-
text="Request Help"
55-
onClick={this.handleCloseClick}
56-
/>
57-
<NavItem
58-
className="menuItem"
59-
to="/mentors"
60-
text="Mentors"
61-
onClick={this.handleCloseClick}
62-
/>
63-
<NavItem
64-
className="menuItem"
65-
to="/squads"
66-
text="Squads"
67-
onClick={this.handleCloseClick}
68-
/>
69-
<button className={styles.navButton} onClick={() => this.props.onLogOutClick()}>Logout</button>
36+
<NavItem to="/mentor-request" text="Request Help" onClick={this.handleCloseClick} />
37+
<NavItem to="/mentors" text="Mentors" onClick={this.handleCloseClick} />
38+
<NavItem to="/squads" text="Squads" onClick={this.handleCloseClick} />
39+
<button
40+
className={styles.navButton}
41+
onClick={() => this.props.onLogOutClick()}
42+
>
43+
Logout
44+
</button>
7045
</span>
7146
);
7247
}
7348
return (
7449
<span>
7550
<NavItem
76-
className="menuItem"
7751
to="/join" text="Join"
7852
onClick={this.handleCloseClick}
7953
/>
@@ -96,33 +70,36 @@ class SideNav extends Component {
9670
</div>
9771
<div className={styles.list}>
9872
<NavItem
99-
className="menuItem"
73+
to="code-schools"
74+
text="Code Schools"
75+
onClick={this.handleCloseClick}
76+
/>
77+
<NavItem
10078
to="https://donorbox.org/operationcode"
10179
text="Donate"
10280
isExternal
10381
onClick={this.handleCloseClick}
10482
/>
10583
{this.renderNavItems()}
10684
<NavItem
107-
className="menuItem"
10885
to="about"
109-
text="About" onClick={this.handleCloseClick}
86+
text="About"
87+
onClick={this.handleCloseClick}
11088
notClickable
11189
/>
11290
<NavItem
113-
className="menuItem"
11491
to="programs"
115-
text="Programs" onClick={this.handleCloseClick}
92+
text="Programs"
93+
onClick={this.handleCloseClick}
11694
notClickable
11795
/>
11896
<NavItem
119-
className="menuItem"
12097
to="involved"
121-
text="Get Involved" onClick={this.handleCloseClick}
98+
text="Get Involved"
99+
onClick={this.handleCloseClick}
122100
notClickable
123101
/>
124102
<NavItem
125-
className="menuItem"
126103
to="blog"
127104
text="Blog"
128105
onClick={this.handleCloseClick}

src/scenes/home/header/topNav/topNav.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ class TopNav extends Component {
1616
<NavItem notClickable to="programs" text="Programs" />
1717
<NavItem notClickable to="involved" text="Get Involved" />
1818
<NavItem notClickable to="blog" text="Blog" />
19+
<NavItem to="code-schools" text="Code Schools" />
1920
<NavItem to="https://donorbox.org/operationcode" text="Donate" isExternal />
2021
<NavItem to="mentors" text="Mentors" />
2122
<NavItem to="requests" text="Requests" />
@@ -30,6 +31,7 @@ class TopNav extends Component {
3031
<NavItem notClickable to="programs" text="Programs" />
3132
<NavItem notClickable to="involved" text="Get Involved" />
3233
<NavItem notClickable to="blog" text="Blog" />
34+
<NavItem to="code-schools" text="Code Schools" />
3335
<NavItem to="https://donorbox.org/operationcode" text="Donate" isExternal />
3436
<NavItem to="mentors" text="Mentors" />
3537
<NavItem to="squads" text="Squads" />

0 commit comments

Comments
 (0)