Skip to content

Commit

Permalink
fix(gatsby-plugin-image): Correct layout proptypes in StaticImage (#2…
Browse files Browse the repository at this point in the history
  • Loading branch information
ascorbic authored Feb 2, 2021
1 parent 55a8b69 commit 0b6f2e3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,12 +91,12 @@ export const propTypes = {
if (props.layout === undefined) {
return undefined
}
if (validLayouts.has(props.layout.toLowerCase())) {
if (validLayouts.has(props.layout)) {
return undefined
}

return new Error(
`Invalid value ${props.layout}" provided for prop "layout". Defaulting to "fixed". Valid values are "fixed", "fullWidth" or "constrained".`
`Invalid value ${props.layout}" provided for prop "layout". Defaulting to "constrained". Valid values are "fixed", "fullWidth" or "constrained".`
)
},
}
Expand Down

0 comments on commit 0b6f2e3

Please sign in to comment.