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
…9298) (#29299)

(cherry picked from commit 0b6f2e3)
  • Loading branch information
ascorbic committed Feb 2, 2021
1 parent c68b5e6 commit 1dec045
Showing 1 changed file with 2 additions and 2 deletions.
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 1dec045

Please sign in to comment.