-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathChannelMenu.js
92 lines (74 loc) · 2.86 KB
/
ChannelMenu.js
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
import React from 'react';
import Drawer from 'material-ui/Drawer';
import AppBar from 'material-ui/AppBar';
import RaisedButton from 'material-ui/RaisedButton';
import MarkerList from '../components/MarkerList'
import FontIcon from 'material-ui/FontIcon';
import SvgIcon from 'material-ui/SvgIcon';
import { blue500, red500, greenA200 } from 'material-ui/styles/colors';
import TextField from 'material-ui/TextField';
import IconButton from 'material-ui/IconButton';
import { List, ListItem } from 'material-ui/List';
import ContentInbox from 'material-ui/svg-icons/content/inbox';
import ActionGrade from 'material-ui/svg-icons/action/grade';
import ContentSend from 'material-ui/svg-icons/content/send';
import ContentDrafts from 'material-ui/svg-icons/content/drafts';
import Divider from 'material-ui/Divider';
import ActionInfo from 'material-ui/svg-icons/action/info';
const iconStyles = {
marginRight: 24,
paddingLeft: 10,
paddingTop: 10
};
const textStyles = {
width: '65%',
marginLeft: 10,
top: 0,
zIndex: 1,
textAlign: 'center'
};
const buttonStyles = {
};
const HomeIcon = (props) => (
<SvgIcon {...props}>
<path d="M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z" />
</SvgIcon>
);
export default class ChannelMenu extends React.Component {
constructor(props) {
super(props);
console.log(props);
//this.state = { open: true };
this.handleMessage = this.handleMessage.bind(this);
}
handleMessage() {
this.props.handleOpenMessage();
//this.props.open = false;
console.log('handleChannel');
}
// handleToggle = () => this.setState({ open: !this.state.open });
//<MarkerList markers={this.props.markers} setMapCenter={this.props.setMapCenter} />
render() {
return (
<div>
<Drawer width={300} openSecondary={true} open={this.props.open} >
<div>
<List>
<ListItem primaryText="團購動物頻道" leftIcon={<ContentInbox />} onTouchTap={this.handleMessage} />
<ListItem primaryText="啾單車頻道" leftIcon={<ActionGrade />} />
<ListItem primaryText="一起吃晚餐" leftIcon={<ContentInbox />} />
</List>
<Divider />
<List>
<ListItem primaryText="一起打球吧" rightIcon={<ActionInfo />}
onTouchTap={this.handleChannel}
/>
<ListItem primaryText="我要去爬山" rightIcon={<ActionInfo />} />
<ListItem primaryText="我要一起寫遊戲" rightIcon={<ActionInfo />} />
</List>
</div>
</Drawer>
</div>
);
}
}