-
Notifications
You must be signed in to change notification settings - Fork 53
Expand file tree
/
Copy pathUserList.js
More file actions
42 lines (34 loc) · 929 Bytes
/
UserList.js
File metadata and controls
42 lines (34 loc) · 929 Bytes
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
import { slide as Menu } from 'react-burger-menu'
import React, {Component} from 'react';
import "../css/UserList.css"
class UserList extends React.Component {
handleStateChange=(state)=>{
this.props.onStateChange(state)
};
render () {
const {userList, stroke, isOpen}= this.props;
let styles = {
bmCrossButton: {
height: '30px',
width: '30px'
},
bmCross: {
background: stroke
},
bmMenu: {
background: '#808080',
}
};
return (
<Menu
onStateChange={(state) => this.handleStateChange(state)}
isOpen={isOpen}
customBurgerIcon={false}
right styles={styles}
>
{userList}
</Menu>
);
}
}
export default UserList;