1
0
mirror of https://github.com/mgerb/go-discord-bot synced 2026-01-10 09:02:49 +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,10 +59,14 @@ export default class SoundList extends React.Component {
render() {
return (
<div className="Card">
<div className="Card__header">
<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) => {
return (

View File

@@ -5,7 +5,7 @@ install:
glide install && yarn install
build:
go build -o ./dist/linux ./server/main.go
go build -o ./dist/bot ./server/main.go
clean:
rm -rf ./dist