1
0
mirror of https://github.com/mgerb/go-discord-bot synced 2026-01-11 17:42:48 +00:00

refactor: move upload history to its own page

This commit is contained in:
2019-08-24 13:22:05 -05:00
parent 55a4bb73af
commit f9c3922670
12 changed files with 104 additions and 82 deletions

View File

@@ -5,6 +5,7 @@ import './sound-list.scss';
interface Props {
soundList: SoundType[];
type: 'sounds' | 'clips';
title: string;
onPlayDiscord?: (sound: SoundType) => void;
showDiscordPlay?: boolean;
}
@@ -47,13 +48,13 @@ export class SoundList extends React.Component<Props, State> {
}
render() {
const { showDiscordPlay, soundList, type } = this.props;
const { showDiscordPlay, soundList, title, type } = this.props;
return (
<div className="card">
<div className="card__header" style={{ display: 'flex' }}>
<div>
<span>{type}</span>
<span>{title}</span>
<i className="fa fa fa-volume-up" aria-hidden="true" />
</div>
<div style={{ flex: 1 }} />