Use AppBar attributes instead of IconButton in example

old
Antti Ahti 2016-11-02 22:21:26 +02:00
parent ebf523dce7
commit 2e2047927c
2 changed files with 2 additions and 2 deletions

View File

@ -37,7 +37,7 @@ class LayoutTest extends React.Component {
</p> </p>
</NavDrawer> </NavDrawer>
<Panel> <Panel>
<AppBar><IconButton icon='menu' inverse={ true } onClick={ this.toggleDrawerActive }/></AppBar> <AppBar leftIcon='menu' onLeftIconClick={ this.toggleDrawerActive } />
<div style={{ flex: 1, overflowY: 'auto', padding: '1.8rem' }}> <div style={{ flex: 1, overflowY: 'auto', padding: '1.8rem' }}>
<h1>Main Content</h1> <h1>Main Content</h1>
<p>Main content goes here.</p> <p>Main content goes here.</p>

View File

@ -28,7 +28,7 @@ class LayoutTest extends React.Component {
</p> </p>
</NavDrawer> </NavDrawer>
<Panel> <Panel>
<AppBar><IconButton icon='menu' inverse={ true } onClick={ this.toggleDrawerActive }/></AppBar> <AppBar leftIcon='menu' onLeftIconClick={ this.toggleDrawerActive } />
<div style={{ flex: 1, overflowY: 'auto', padding: '1.8rem' }}> <div style={{ flex: 1, overflowY: 'auto', padding: '1.8rem' }}>
<h1>Main Content</h1> <h1>Main Content</h1>
<p>Main content goes here.</p> <p>Main content goes here.</p>