Skip to content
This repository has been archived by the owner on Feb 19, 2024. It is now read-only.

Commit

Permalink
fix(image): add default theme to image
Browse files Browse the repository at this point in the history
  • Loading branch information
ostowe committed May 1, 2020
1 parent e3a86e9 commit 5821178
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/styled/components/image/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ Image.propTypes = {
/**
* Theme for this component
*/
theme: PropTypes.object.isRequired,
theme: PropTypes.object,
};

Image.defaultProps = {
Expand All @@ -164,6 +164,7 @@ Image.defaultProps = {
picture: false,
sizes: '',
showCaption: false,
theme: defaultTheme,
};

export default Image;
Expand Down

0 comments on commit 5821178

Please sign in to comment.