feat: Add a 'No Vocab' dialog
This commit is contained in:
@@ -8,8 +8,6 @@ import Button from "@material-ui/core/Button";
|
||||
import Typography from "@material-ui/core/Typography";
|
||||
import Popover from "@material-ui/core/Popover";
|
||||
import LinearProgress from "@material-ui/core/LinearProgress";
|
||||
import CircularProgress from "@material-ui/core/CircularProgress";
|
||||
import Paper from "@material-ui/core/Paper";
|
||||
import Tooltip from "@material-ui/core/Tooltip";
|
||||
import Dialog from "@material-ui/core/Dialog";
|
||||
import DialogActions from "@material-ui/core/DialogActions";
|
||||
@@ -322,7 +320,30 @@ const ReviewPageWithRouter = withRouter(
|
||||
|
||||
render() {
|
||||
if (this.props.loading) {
|
||||
return <Loader />;
|
||||
return <div>
|
||||
<Dialog
|
||||
open={this.props.modalShow}
|
||||
onClose={() => { }}>
|
||||
<DialogTitle>Deine Vokabelliste ist leer</DialogTitle>
|
||||
<DialogContent>
|
||||
<DialogContentText>
|
||||
Du hast noch keine Vokabeln, die du wiederholen könntest.
|
||||
|
||||
Vokabeln werden nach dem erfolgreichen beenden eines Levels
|
||||
der Vokabelliste hinzugefügt
|
||||
</DialogContentText>
|
||||
</DialogContent>
|
||||
<DialogActions>
|
||||
<Button
|
||||
onClick={this.closeModal}
|
||||
color="primary">
|
||||
Verstanden
|
||||
</Button>
|
||||
</DialogActions>
|
||||
</Dialog>
|
||||
|
||||
<Loader />
|
||||
</div>;
|
||||
}
|
||||
|
||||
const { question, qtype } = this.props.current;
|
||||
@@ -431,26 +452,6 @@ const ReviewPageWithRouter = withRouter(
|
||||
) : undefined
|
||||
}
|
||||
|
||||
<Dialog
|
||||
open={true}
|
||||
onClose={() => { }}>
|
||||
<DialogTitle>Deine Vokabelliste ist leer</DialogTitle>
|
||||
<DialogContent>
|
||||
<DialogContentText>
|
||||
Du hast noch keine Vokabeln, die du wiederholen könntest.
|
||||
|
||||
Vokabeln werden nach dem erfolgreichen beenden eines Levels
|
||||
der Vokabelliste hinzugefügt
|
||||
</DialogContentText>
|
||||
</DialogContent>
|
||||
<DialogActions>
|
||||
<Button
|
||||
onClick={this.closeModal}
|
||||
color="primary">
|
||||
Verstanden
|
||||
</Button>
|
||||
</DialogActions>
|
||||
</Dialog>
|
||||
<Dialog
|
||||
open={this.props.dialogOpen}
|
||||
onClose={this.closeDialog}>
|
||||
|
||||
Reference in New Issue
Block a user