Skip to content

Commit 4d030f6

Browse files
committed
better code style
1 parent 3b60278 commit 4d030f6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/templates/Drawer/BasicDrawer/BasicDrawer.jsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,17 @@
11
import _ from 'lodash';
22
import React from 'react';
3+
import PropTypes from 'prop-types';
34
import { withStyles } from 'material-ui/styles';
45
import List, { ListItem, ListItemIcon, ListItemText } from 'material-ui/List';
56
import Icon from 'material-ui/Icon';
67

78
import styles from './styles';
89

910
class BasicDrawer extends React.PureComponent {
11+
static propTypes = {
12+
links: PropTypes.arrayOf(PropTypes.shape({})),
13+
classes: PropTypes.shape({}),
14+
}
1015
render() {
1116
const { links, classes } = this.props;
1217
return (

0 commit comments

Comments
 (0)