Skip to content

Commit 57d80a2

Browse files
committed
Merge pull request #15 from ParsePlatform/clean-up-sidebar
Clean up sidebar header and remove link to account
2 parents f2296cb + 0ebfd71 commit 57d80a2

File tree

3 files changed

+15
-45
lines changed

3 files changed

+15
-45
lines changed

components/Sidebar/Sidebar.scss

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -111,21 +111,6 @@
111111
}
112112
}
113113

114-
.account {
115-
font-size: 14px;
116-
text-align: right;
117-
line-height: 30px;
118-
width: 160px;
119-
float: right;
120-
overflow: hidden;
121-
text-overflow: ellipsis;
122-
123-
a {
124-
color: white;
125-
text-decoration: none;
126-
}
127-
}
128-
129114
.currentApp, .menuRow {
130115
display: block;
131116
background: #094162;

components/Sidebar/SidebarHeader.react.js

Lines changed: 13 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -6,36 +6,21 @@
66
* the root directory of this source tree.
77
*/
88
import AccountManager from 'lib/AccountManager';
9-
import { getToken } from 'lib/CSRFManager';
10-
import getSiteDomain from 'lib/getSiteDomain';
119
import Icon from 'components/Icon/Icon.react';
1210
import { Link } from 'react-router';
1311
import React from 'react';
1412
import styles from 'components/Sidebar/Sidebar.scss';
15-
// As long as we use refs, this can't be a stateless component
16-
export default class SidebarHeader extends React.Component {
17-
constructor() {
18-
super();
19-
this.state = {
20-
};
21-
}
2213

23-
render() {
24-
return (
25-
<div className={styles.header}>
26-
<Link className={styles.logo} to='/apps'>
27-
<Icon width={28} height={28} name='infinity' fill={'#ffffff'} />
28-
</Link>
29-
<form ref='switch' method='post' action={`${getSiteDomain()}/account/swap_dashboard`}>
30-
<input type='hidden' name='authenticity_token' value={getToken()} />
31-
</form>
32-
<div className={styles.version}>
33-
<div>Parse Dashboard</div>
34-
</div>
35-
<div className={styles.account}>
36-
<Link to='/account'>{AccountManager.currentUser().email}</Link>
37-
</div>
38-
</div>
39-
);
40-
}
41-
}
14+
let SidebarHeader = ({}) =>
15+
<div className={styles.header}>
16+
<Link className={styles.logo} to='/apps'>
17+
<Icon width={28} height={28} name='infinity' fill={'#ffffff'} />
18+
</Link>
19+
<Link to='/apps'>
20+
<div className={styles.version}>
21+
<div>Parse Dashboard</div>
22+
</div>
23+
</Link>
24+
</div>
25+
26+
export default SidebarHeader

dashboard/SidebarBuilder.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ let accountSidebarSections = [
1515
name: 'Your Apps',
1616
icon: 'blank-app-outline',
1717
link: '/apps'
18-
}, {
18+
}, /*{
1919
name: 'Account Settings',
2020
icon: 'users-solid',
2121
link: '/account',
22-
}
22+
}*/
2323
];
2424

2525
export function buildAccountSidebar(options) {

0 commit comments

Comments
 (0)