feat: If no vocabulary has been learned, this should be told

This commit is contained in:
Alexander Polynomdivision 2018-10-15 17:01:18 +02:00
parent 22ded2ec38
commit e9d7c156cc

View File

@ -131,6 +131,15 @@ export default class VocabPage extends React.Component<IProps> {
const { vocab } = this.props;
return <div className="content">
{vocab.map(this.vocabToCard)}
{
vocab.length === 0 ? (
<div className="flex-parent">
<Typography variant="display1">
Noch keine Vokabeln gelernt
</Typography>
</div>
) : undefined
}
<div className="vocab-bottom-spacer" />
<Dialog