Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SRCT
whats-open-web
Commits
3a2b0b93
Commit
3a2b0b93
authored
Oct 14, 2017
by
Andrew Hrdy
Browse files
Cleaned up the drawer. WIP.
parent
19601ea3
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/components/AppBar.js
View file @
3a2b0b93
...
...
@@ -10,6 +10,7 @@ import MenuIcon from 'material-ui-icons/Menu';
import
{
compose
}
from
'
redux
'
;
import
Drawer
from
'
material-ui/Drawer
'
;
import
List
,
{
ListItem
}
from
'
material-ui/List
'
;
import
Divider
from
'
material-ui/Divider
'
;
class
customAppBar
extends
React
.
Component
{
...
...
@@ -47,20 +48,26 @@ class customAppBar extends React.Component {
</IconButton>
</Toolbar>
</AppBar>
{
<Drawer anchor="left" open={this.state.isDrawerOpen} onRequestClose={this.toggleDrawer}>
<List>
<Drawer anchor="left" open={this.state.isDrawerOpen} onRequestClose={this.toggleDrawer}>
<List
className={this.props.classes.appBarDrawerList}
>
<ListItem>
<Button key={
'
about
'
}>
<Typography type="title" color="inherit">
What
'
s
Open
<
/Typography
>
<
/ListItem
>
<
Divider
/>
<
ListItem
>
<
Button
key
=
{
'
about
'
}
className
=
{
this
.
props
.
classes
.
drawerLinkButton
}
>
About
<
/Button
>
<
/ListItem
>
<
ListItem
>
<Button key={
'
feedback
'
}>
<
Button
key
=
{
'
feedback
'
}
className
=
{
this
.
props
.
classes
.
drawerLinkButton
}
>
Feedback
<
/Button
>
<
/ListItem
>
<
/List
>
</Drawer>
}
<
/Drawer
>
<
/div>
)
;
};
}
...
...
@@ -84,6 +91,12 @@ const styleSheet = {
color
:
'
rgba(255,255,255,1)
'
}
},
appBarDrawerList
:
{
width
:
'
250px
'
},
drawerLinkButton
:
{
width
:
'
100%
'
},
title
:
{
marginRight
:
'
auto
'
,
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment