diff --git a/README.md b/README.md index 4ed6d0f..c208bf9 100644 --- a/README.md +++ b/README.md @@ -56,7 +56,7 @@ If `crop` is set to false, then it will not show the crop handles, set `crop` to ## History History component uses `step` and `length` to determine where user is in history, and looks for children with -`action` prop `back` or `next` - it also uses the `ifEmpty` tag to `disable` or `hide` the button if user is +`action` prop `back` or `next` - it also uses the `ifempty` tag to `disable` or `hide` the button if user is at beginning or end of history. ```jsx @@ -64,7 +64,7 @@ at beginning or end of history. - - - @@ -148,7 +148,7 @@ The CropMenu is entirely optional, and you can create your own composition for t - - - - diff --git a/src/components/CropMenu.js b/src/components/CropMenu.js index abed82a..eec3131 100644 --- a/src/components/CropMenu.js +++ b/src/components/CropMenu.js @@ -4,7 +4,7 @@ export default ({isCropping, children}) => { React.Children.map(children, child => { - const showOnlyWhen = child.props['data-showOnlyWhen']; + const showOnlyWhen = child.props['data-showonlywhen']; if (isCropping && showOnlyWhen === "croppingIsOn") { return child; diff --git a/src/components/History.js b/src/components/History.js index edd32b8..06ed8a1 100644 --- a/src/components/History.js +++ b/src/components/History.js @@ -10,7 +10,7 @@ const History = ({ let childNodes = []; React.Children.forEach(children, child => { - const ifEmpty = child.props['data-ifEmpty']; + const ifEmpty = child.props['data-ifempty']; const action = child.props.action; if (action === "back") { diff --git a/src/containers/KitchenSink.js b/src/containers/KitchenSink.js index 787a59f..717bf07 100644 --- a/src/containers/KitchenSink.js +++ b/src/containers/KitchenSink.js @@ -211,7 +211,7 @@ export default class KitchenSink extends React.Component { -