We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 55a8b69 commit 0b6f2e3Copy full SHA for 0b6f2e3
packages/gatsby-plugin-image/src/components/static-image.server.tsx
@@ -91,12 +91,12 @@ export const propTypes = {
91
if (props.layout === undefined) {
92
return undefined
93
}
94
- if (validLayouts.has(props.layout.toLowerCase())) {
+ if (validLayouts.has(props.layout)) {
95
96
97
98
return new Error(
99
- `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".`
100
)
101
},
102
0 commit comments