Skip to content

Commit

Permalink
Add more default values for image component
Browse files Browse the repository at this point in the history
  • Loading branch information
delphaber committed Mar 24, 2020
1 parent 82b30b9 commit 6b3b515
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Image/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,16 @@ export const Image = {
webpSrcSet: PropTypes.string,
bgColor: PropTypes.string,
alt: PropTypes.string,
title: PropTypes.string
title: PropTypes.string,
}).isRequired,
pictureClass: PropTypes.string,
fadeInDuration: PropTypes.number.defaultValue(500),
intersectionTreshold: PropTypes.number.defaultValue(0),
intersectionMargin: PropTypes.string.defaultValue("0px 0px 0px 0px"),
lazyLoad: PropTypes.bool.defaultValue(true),
pictureStyle: PropTypes.object,
rootStyle: PropTypes.object,
explicitWidth: PropTypes.bool
pictureStyle: PropTypes.object.defaultValue(() => ({})),
rootStyle: PropTypes.object.defaultValue(() => ({})),
explicitWidth: PropTypes.bool.defaultValue(false),
},
inheritAttrs: false,
data: () => ({
Expand Down

0 comments on commit 6b3b515

Please sign in to comment.