Skip to content

Commit

Permalink
Improve Avatar validation
Browse files Browse the repository at this point in the history
  • Loading branch information
javivelasco committed Nov 27, 2015
1 parent a830c93 commit cdd7d77
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions components/avatar/Avatar.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'react';
import React, {PropTypes} from 'react';
import FontIcon from '../font_icon';
import style from './style';

Expand All @@ -14,11 +14,11 @@ const Avatar = ({children, className, icon, image, title, ...other}) => {
};

Avatar.propTypes = {
children: React.PropTypes.node,
className: React.PropTypes.string,
icon: React.PropTypes.string,
image: React.PropTypes.string,
title: React.PropTypes.string
children: PropTypes.node,
className: PropTypes.string,
icon: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
image: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
title: PropTypes.string
};

export default Avatar;

0 comments on commit cdd7d77

Please sign in to comment.