-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathabout-dialog.component.js
More file actions
66 lines (63 loc) · 2.93 KB
/
about-dialog.component.js
File metadata and controls
66 lines (63 loc) · 2.93 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
import Button from '@material-ui/core/Button';
import Dialog from '@material-ui/core/Dialog';
import DialogActions from '@material-ui/core/DialogActions';
import DialogContent from '@material-ui/core/DialogContent';
import { DialogContentText } from '@material-ui/core';
import DialogTitle from '@material-ui/core/DialogTitle';
import React from 'react';
class AboutDialog extends React.Component {
constructor(props) {
super(props);
this.state = {
task: props.task || {},
};
}
handleClose() {
this.props.onClose();
}
render() {
return (
<Dialog open={true} onClose={this.handleClose.bind(this)}>
<DialogTitle>
About Awesome Google Tasks
</DialogTitle>
<DialogContent>
<DialogContentText>
<em>Awesome Google Tasks</em> is an alternative web client for <em>Google Tasks</em>.
<br />
This project is open-source, and you can <a href="https://github.com/bluzi/awesome-google-tasks" target="_blank" rel="noopener noreferrer">view the source code on GitHub</a>.
<br />
<br />
If you have any questions, feel free to reach out on <a href="https://github.com/bluzi" target="_blank" rel="noopener noreferrer">GitHub</a>, <a href="https://twitter.com/eliranpeer" target="_blank" rel="noopener noreferrer">Twitter</a> or <a href="mailto:info@awesomegoogletasks.com" target="_blank" rel="noopener noreferrer">via email</a>.
<br />
<br />
Use CTRL + left/right arrows to navigate between the tasks and the lists panel
<br />
Use up/down arrows to navigate between tasks/lists
<br />
Press Enter when selecting a list to navigate into it
<br />
Press Enter when selecting a task to create a new task
<br />
Use CTRL + Enter when selecting a task to mark it as completed
<br />
Use CTRL + N to create new tasks or lists
<br />
Use CTRL + Q to edit a task or a list
<br />
Use CTRL + D to delete a task or a list
<br />
Use CTRL + A to navigate to All Tasks view
<br />
</DialogContentText>
</DialogContent>
<DialogActions>
<Button onClick={this.handleClose.bind(this)} color="primary">
Close
</Button>
</DialogActions>
</Dialog>
)
}
}
export default AboutDialog;