Skip to content

Commit af04576

Browse files
committed
Remove developer guide from sidebar
1 parent 92d0885 commit af04576

File tree

2 files changed

+30
-46
lines changed

2 files changed

+30
-46
lines changed

components/sidebar.js

+30-22
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,11 @@ const { publicRuntimeConfig } = getConfig()
99
const URL = publicRuntimeConfig.APP_URL
1010

1111
const NavLink = withRouter(({ children, href }) => {
12-
return <Link href={href} activeClassName='active'>{children}</Link>
12+
return (
13+
<Link href={href} activeClassName='active'>
14+
{children}
15+
</Link>
16+
)
1317
})
1418

1519
class Sidebar extends Component {
@@ -20,7 +24,10 @@ class Sidebar extends Component {
2024
<Fragment>
2125
<li>
2226
<NavLink href='/clients'>
23-
<a className='global-menu__link global-menu__link--app' title='Connect new app'>
27+
<a
28+
className='global-menu__link global-menu__link--app'
29+
title='Connect new app'
30+
>
2431
<span>Connect a new app</span>
2532
</a>
2633
</NavLink>
@@ -30,30 +37,31 @@ class Sidebar extends Component {
3037
return (
3138
<div className='page__sidebar'>
3239
<div className='page__headline'>
33-
<h1 className='page__title'><a href='/' title='Visit the home page'><img src={join(URL, '/static/TeamsLogo_reverse.svg')} /></a></h1>
40+
<h1 className='page__title'>
41+
<a href='/' title='Visit the home page'>
42+
<img src={join(URL, '/static/TeamsLogo_reverse.svg')} />
43+
</a>
44+
</h1>
3445
</div>
3546
<nav role='navigation'>
3647
<ul className='global-menu'>
37-
{
38-
uid ? additionalMenuItems : <Fragment />
39-
}
40-
<li>
41-
<NavLink href='/developers'>
42-
<a className='global-menu__link global-menu__link--developers' title='Visit Developers Page'>
43-
<span>Developer guide</span>
44-
</a>
45-
</NavLink>
46-
</li>
48+
{uid ? additionalMenuItems : <Fragment />}
4749
</ul>
48-
{
49-
uid
50-
? <a className='global-menu__link login danger' onClick={() => {
50+
{uid ? (
51+
<a
52+
className='global-menu__link login danger'
53+
onClick={() => {
5154
window.sessionStorage.clear()
5255
Router.push('/logout')
53-
}
54-
}>Log Out</a>
55-
: <a className='global-menu__link login' href={join(URL, '/login')}>Sign in</a>
56-
}
56+
}}
57+
>
58+
Log Out
59+
</a>
60+
) : (
61+
<a className='global-menu__link login' href={join(URL, '/login')}>
62+
Sign in
63+
</a>
64+
)}
5765
</nav>
5866
<style jsx global>
5967
{`
@@ -139,7 +147,7 @@ class Sidebar extends Component {
139147
line-height: 2.5rem;
140148
}
141149
.global-menu__link:active {
142-
background-color: rgba(244,244,244,0.1);
150+
background-color: rgba(244, 244, 244, 0.1);
143151
}
144152
145153
.global-menu__link--make {
@@ -215,7 +223,7 @@ class Sidebar extends Component {
215223
216224
.global-menu > li {
217225
margin-bottom: 1.5rem;
218-
margin-right: 0
226+
margin-right: 0;
219227
}
220228
}
221229
@media screen and (min-width: ${theme.mediaRanges.large}) {

pages/developers.js

-24
This file was deleted.

0 commit comments

Comments
 (0)