From 54b9601d9c3459a17bb62a739f9095f89ce397b8 Mon Sep 17 00:00:00 2001 From: Alex Windett Date: Fri, 28 Oct 2016 12:47:58 +0100 Subject: [PATCH] changing props name to be more consistant --- ui/src/components/avatar/index.js | 8 ++++---- ui/src/components/avatar/readme.md | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/ui/src/components/avatar/index.js b/ui/src/components/avatar/index.js index a2b26d46..4d6f48b7 100644 --- a/ui/src/components/avatar/index.js +++ b/ui/src/components/avatar/index.js @@ -6,7 +6,7 @@ const styles = require('./style.css'); const Avatar = ({ color, - image, + src, name, className, style @@ -23,12 +23,12 @@ const Avatar = ({ }; const fill = () => { - if ( image ) { + if ( src ) { return ( {name} ); @@ -55,8 +55,8 @@ const Avatar = ({ Avatar.propTypes = { className: React.PropTypes.string, color: React.PropTypes.string, - image: React.PropTypes.string, name: React.PropTypes.string, + src: React.PropTypes.string, style: React.PropTypes.object }; diff --git a/ui/src/components/avatar/readme.md b/ui/src/components/avatar/readme.md index 38f58712..13c2ad83 100644 --- a/ui/src/components/avatar/readme.md +++ b/ui/src/components/avatar/readme.md @@ -19,7 +19,7 @@ nmodule.exports = ReactDOM.renderToString( - + @@ -35,7 +35,7 @@ const Avatar = require('ui/avatar'); module.exports = () => { return ( - + ); } ```