1
0
mirror of https://github.com/mgerb/go-discord-bot synced 2026-01-11 09:32:50 +00:00

show sounds count in header

This commit is contained in:
2017-06-28 23:31:19 -05:00
parent eacdc51874
commit 55bbf7cc1f
2 changed files with 8 additions and 4 deletions

View File

@@ -59,9 +59,13 @@ export default class SoundList extends React.Component {
render() {
return (
<div className="Card">
<div className="Card__header">
Sounds
<i className="fa fa fa-volume-up" aria-hidden="true"/>
<div className="Card__header" style={{display:'flex'}}>
<div>
Sounds
<i className="fa fa fa-volume-up" aria-hidden="true"/>
</div>
<div style={{flex:1}}/>
<div>({this.state.soundList.length})</div>
</div>
{this.state.soundList.length > 0 ? this.state.soundList.map((sound, index) => {