1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 09:46:22 +00:00

foldable sidebar

This commit is contained in:
Dick Choi
2016-07-30 19:17:09 +09:00
parent ef866f957a
commit 3b7ed5ffd7
5 changed files with 85 additions and 26 deletions

View File

@@ -46,6 +46,7 @@ class SideNav extends React.Component {
key={storage.key}
storage={storage}
location={location}
isFolded={isFolded}
/>
})
@@ -83,16 +84,14 @@ class SideNav extends React.Component {
<div styleName='storageList-empty'>No storage mount.</div>
)}
</div>
{false &&
<button styleName='navToggle'
onClick={(e) => this.handleToggleButtonClick(e)}
>
{isFolded
? <i className='fa fa-angle-double-right'/>
: <i className='fa fa-angle-double-left'/>
}
</button>
}
<button styleName='navToggle'
onClick={(e) => this.handleToggleButtonClick(e)}
>
{isFolded
? <i className='fa fa-angle-double-right'/>
: <i className='fa fa-angle-double-left'/>
}
</button>
</div>
)
}